octave-bug-tracker
[Top][All Lists]
Advanced

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

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


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #29447] Cannot create @handles to non-existing functions
Date: Tue, 06 Apr 2010 17:58:17 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100308 Iceweasel/3.5.8 (like Firefox/3.5.8)

Follow-up Comment #7, bug #29447 (project octave):

OK, looking at this some more, I don't think what I proposed is at all the
right thing for Matlab compatibility.  Apparently you can do

  f = @nofun;

for a function that is currently not visible anywhere in Matlab's path, then
you can cd to a directory that contains a function called nofun, or evaluate f
in some other context where a function (or subfunction) called nofun exists,
and that function will be called.

So we really do need something different here if we want compatibility.  It
seems that we need to be able to create the function handle object but without
doing the function lookup in advance, then later perform the lookup if the
handle is not already defined.

Exactly how and why is this used in niftimatlib?  Is it to set up a list of
function handles that are later evaluated in different contexts with different
expected results (sometimes a  function is found, other times not)?  Or is it
something else?

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29447>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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