[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: CH
Subject: [Octave-bug-tracker] [bug #39257] handles to nested functions are not yet supported
Date: Tue, 3 Apr 2018 14:09:09 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

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

on comment #19:
you are exactly right, the time of creation decides. So each new handle would
require a new copy of the (relevant) local workspace.

on comment #20:
This is something I cannot answer from the top of my head and I will test this

Generally nested functions should work the same way as anonymous functions
with regard to closures, which work already in Octave as desired. So if you
change the nested function in comment #11 (or comment #19) to an anonymous
function it works. There similarly a copy of the workspace has to be made,
right? If you take your example from comment #20 and change the nested to an
anonymous function, also the persistent variable is "frozen" for each call of
the enclosing function.

Thanks for looking into this.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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