|
From: | Søren Hauberg |
Subject: | [Octave-bug-tracker] [bug #29447] Cannot create @handles to non-existing functions |
Date: | Tue, 06 Apr 2010 17:01:18 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; da-DK; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8 |
Follow-up Comment #5, bug #29447 (project octave): I agree that returning a string is a bad idea as you want be able to call the function without going through 'feval'. That is, the following will not work f = @foo; f (7) (it will try to index the string). How about just returning an anonymous function that calls 'feval'? Something like f = @(varargin) feval ("foo", varargin {:}) should then be returned when the user constructs '@foo'. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?29447> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |