[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #29447] Cannot create @handles to non-existing

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: 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

  f = @(varargin) feval ("foo", varargin {:})

should then be returned when the user constructs '@foo'.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]