octave-bug-tracker
[Top][All Lists]
Advanced

[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:24:44 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:60.9) Goanna/4.1 PaleMoon/28.2.0a1

Follow-up Comment #35, bug #39257 (project octave):

What will be the output of the following test case?



function  [fh1, fh2] = counter
  value = 0;
  fh1 = @increment;
  fh2 = @increment;
  output1 = [f1() f1() f2() f1() f2()]
  function currentValue = increment
    value = value+1;
    currentValue = value;
  end
  

  fh1 = @increment;
  value = 30;
  fh2 = @increment;
  output2 = [f1() f1() f2() f1() f2()]
  
  
  fh1 = @increment;
  fh2 = @increment;
  value = 60;
  output3 = [f1() f1() f2() f1() f2()]
  
  fh1 = @increment;
  fh2 = @increment;

  output4 = [f1() f1() f2() f1() f2()]
  value = 90;
end

[f1 , f2] = counter();

output5 = [f1() f1() f2() f1() f2()]


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?39257>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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