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

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

[Octave-bug-tracker] [bug #37179] isequal(@XXX, @XXX) is not compatible


From: Rik
Subject: [Octave-bug-tracker] [bug #37179] isequal(@XXX, @XXX) is not compatible
Date: Mon, 27 Aug 2012 02:20:05 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1

Follow-up Comment #2, bug #37179 (project octave):

The problem isn't even with isequal.  The issue is that the parser immediately
tries to find the function handle @XXX in the symbol table and when it fails
it reports an error.  You can verify this by setting a breakpoint in the
function isequal and you will find that the breakpoint is never reached.  

Perhaps the answer is to delay the lookup on a function handle unless a value
is requested.  Thus,


y = @sin;  # Assign the function handle @sin to y without looking it up
y = @sin(1); # This would cause the function handle lookup.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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