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: John W. Eaton
Subject: [Octave-bug-tracker] [bug #39257] handles to nested functions are not yet supported
Date: Tue, 3 Apr 2018 11:29:40 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

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

Also, with the following function:


function [fh1, fh2] = foo ()
  persistent z
  z = 1;
  function r = nest (x)
    z
    z = x
  end
  fh1 = @nest;
  fh2 = @nest;
end


What does this do:


[fh1, fh2] = foo ()
fh1 (2)
fh2 (3)
fh3 = foo ()
fh1 (4)
fh3 (5)


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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