[Top][All Lists]

[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: 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

function fcnHandle = counter
  value = 0;
  function currentValue = increment
    value = value+1;
    currentValue = value;
  fcnHandle = @increment;

f1 = counter();
f2 = counter();
output = [f1() f1() f2() f1() f2()];

It should produce [1 2 1 3 2].


Reply to this item at:


  Message sent via Savannah

reply via email to

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