[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39257] handles to nested functions are not ye
From: |
CH |
Subject: |
[Octave-bug-tracker] [bug #39257] handles to nested functions are not yet supported |
Date: |
Fri, 28 Apr 2017 03:19:13 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0 |
Follow-up Comment #11, bug #39257 (project octave):
Hi,
I applied the most recent patch set and tested this:
function y = testnested()
a = 1;
function nested()
disp(a);
end
y = @nested;
end
The code fails with the error message:
"Handles of nested functions cannot be function return values or the value of
global variables when a function returns"
This is a severe limitation for me, especially considering I can return
handles to anonymous functions. Can this feature be added in a new patch?
Running the nested function inside the host instead of returning a handle
works though.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39257>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #39257] handles to nested functions are not yet supported,
CH <=