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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #40938] interaction among eval, anonymous func


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #40938] interaction among eval, anonymous function, and functions
Date: Tue, 25 Feb 2020 18:37:43 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:71.0) Gecko/20100101 Firefox/71.0

Follow-up Comment #3, bug #40938 (project octave):

Are you absolutely sure that doit_bad() actually works in Matlab, and you
haven't defined a global function named "pi2" or something like that? Because
that's not how nested functions are supposed to work. They don't get
references to enclosing workspaces; they only get copies of the individual
variables that they explicitly statically reference, at function handle
creation time. That doit_bad() should result in a run time error complaining
about an "undefined function or variable" in a default Matlab setup. Unless
something has changed in recent Matlab versions.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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