[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous func
From: |
Denis Sbragion |
Subject: |
[Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling |
Date: |
Mon, 22 Mar 2021 11:45:48 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0 |
Follow-up Comment #10, bug #60237 (project octave):
After some further testing I found a pure Octave test case where Octave 6.2
fails and 5.2 works. No oct file involvment.
The following code:
function antest()
d = 2;
function c = bm(a)
c = a + d;
endfunction;
ancall(@(a)(bm(a)),2)
endfunction
function r = ancall(f,a)
r = f(a) + 1;
endfunction
Works with 5.2.0, while with 6.2.0 and 6.2.1 gives:
octave:3> antest
error: 'd' undefined near line 5, column 5
error: called from
antest>bm at line 5 column 5
antest>@<anonymous> at line 8 column 14
antest>ancall at line 12 column 4
antest at line 8 column 2
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60237>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling, Denis Sbragion, 2021/03/15
- [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling, Dmitri A. Sergatskov, 2021/03/15
- [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling, Markus Mützel, 2021/03/15
- [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling, Denis Sbragion, 2021/03/16
- [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling, Denis Sbragion, 2021/03/16
- [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling, Denis Sbragion, 2021/03/16
- [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling, Markus Mützel, 2021/03/17
- [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling, Denis Sbragion, 2021/03/17
- [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling, Denis Sbragion, 2021/03/18
- [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling, Denis Sbragion, 2021/03/18
- [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling,
Denis Sbragion <=
- [Octave-bug-tracker] [bug #60237] Differente behaviour in anonymous function handling, John W. Eaton, 2021/03/22