[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65275] The anonymous functions ignore the env
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #65275] The anonymous functions ignore the environment |
Date: |
Thu, 8 Feb 2024 14:33:29 -0500 (EST) |
Update of bug#65275 (group octave):
Status: None => Wont Fix
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
Unfortunately we need to maintain compatibility with Matlab for items like
this. See the "Variables in the Expression" section in
https://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html
As is, k is not a variable as far as f is concerned. it is a constant who's
value is assigned to f when it is created. and since there is no change to f
after you change k, there is no opportunity to redefine it's meeting in f.
closing as won't fix. If someone can propose a compatibility preserving way of
extending this behavior, we can revisit the issue.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65275>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/