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: Max Brister
Subject: [Octave-bug-tracker] [bug #37179] isequal(@XXX, @XXX) is not compatible
Date: Mon, 27 Aug 2012 02:45:41 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.81 Safari/537.1

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

Rik,

I think it is actually a little more complicated. I created two directories
temp and temp2. I put foo.m inside of temp. foo.m is defined as follows
function x = foo (); x = 5;

In matlab R2010a

% First case:
>> cd temp
>> a = @foo;
>> cd ../temp2
>> a ()

ans =

     5

% Second case:
>> cd temp2
>> a = @foo;
>> cd ../temp
>> a ()

ans =

     5

>> cd ../temp2
>> a ()
??? Undefined function or variable 'foo'.
 

So it looks like matlab looks up the function just like Octave does, but if it
can't find the function it does not error. Instead the function handle goes
into a state where it is looked up on every invocation.

This behavior seems nonsensical to me. Do we want to consider this a matlab
bug?

    _______________________________________________________

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]