|
| From: | anonymous |
| Subject: | [Octave-bug-tracker] [bug #39257] handles to nested functions are not yet supported |
| Date: | Thu, 7 Mar 2019 00:07:14 -0500 (EST) |
| User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:60.9) Goanna/4.1 PaleMoon/28.2.0a1 |
Follow-up Comment #34, bug #39257 (project octave):
Here is a test case for testing memoization capability of nested functions [1
<https://stackoverflow.com/q/26238491/6579744>].
function fcnHandle = counter
value = 0;
function currentValue = increment
value = value+1;
currentValue = value;
end
fcnHandle = @increment;
end
f1 = counter();
f2 = counter();
output = [f1() f1() f2() f1() f2()];
It should produce [1 2 1 3 2].
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?39257>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |