|
| From: | Rik |
| Subject: | [Octave-bug-tracker] [bug #31821] Function handles for nonexisting functions |
| Date: | Tue, 5 Mar 2019 18:58:31 -0500 (EST) |
| User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Update of bug #31821 (project octave):
Status: Wont Fix => Fixed
_______________________________________________________
Follow-up Comment #8:
Only thing I might do is change the error message.
I added file blah.m in the directory above where I started Octave.
function y = blah ()
disp ('executing blah');
y = 5;
endfunction
Now, I run the following sequence
octave:1> f = @blah
f = @blah
octave:2> f()
error: blah: no longer valid function handle
octave:2> cd ..
octave:3> f()
executing blah
ans = 5
The message is incorrect because @blah was not a valid function handle at the
time it was created. It wasn't the case that it was valid, and then became
invalid.
I think it would be enough to just say "blah: invalid function handle".
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?31821>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |