[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58519] anonymous function doesn't remember ce
From: |
Olaf Till |
Subject: |
[Octave-bug-tracker] [bug #58519] anonymous function doesn't remember certain variables |
Date: |
Sun, 7 Jun 2020 06:58:42 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
URL:
<https://savannah.gnu.org/bugs/?58519>
Summary: anonymous function doesn't remember certain
variables
Project: GNU Octave
Submitted by: i7tiol
Submitted on: Sun 07 Jun 2020 10:58:40 AM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Regression
Status: None
Assigned to: None
Originator Name: Olaf Till
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
With Octave development revision ... (I'll post the revision later, if still
necessary, my connection to the machine with Octave broke in this moment),
there is this error:
octave:9> fieldname = "a";
octave:10> structure = struct (fieldname, 1);
octave:11> anonfunc = @ () structure.(fieldname);
octave:12> anonfunc ()
error: 'fieldname' undefined near line 1, column 1
error: called from
@<anonymous> at line 1 column 18
octave:13>
while in Octave-5.2, 'ans = 1' is returned, which is what I'd expect.
The issue is probably the cause of bug #57199, reported against the optim
package with some version of Octave-6.0.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58519>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #58519] anonymous function doesn't remember certain variables,
Olaf Till <=