[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60137] Closures: differences in behavior with
From: |
Pascal Dupuis |
Subject: |
[Octave-bug-tracker] [bug #60137] Closures: differences in behavior with MatLAB |
Date: |
Sat, 27 Feb 2021 10:25:05 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Goanna/4.8 Firefox/68.0 PaleMoon/29.0.1 |
URL:
<https://savannah.gnu.org/bugs/?60137>
Summary: Closures: differences in behavior with MatLAB
Project: GNU Octave
Submitted by: cdemills
Submitted on: Sat 27 Feb 2021 03:25:02 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Regression
Status: None
Assigned to: None
Originator Name: Pascal Dupuis
Originator Email:
Open/Closed: Open
Release: 6.2.0
Discussion Lock: Any
Operating System: GNU/Linux
_______________________________________________________
Details:
Hello,
As suggested by JWE, here's a report about issues with available variables in
nested scope. The idea is to initialize some context with a few constant
matrices and some variables.
The expected behavior is to get a new result from a matrix operation after
test_nested_script lines 6 and 7, where the increase() and decrease funcs are
called.
Under MatLAB R2018b, the test "exist('x', 'var')" succeeds and the size of x
is displayed: (2, 1) for ctr1 and (10, 1) for ctr2. Under Octave, the behavior
w.r.t. n and n0 is OK, but variables
"A regmat x y" are not available in the subfunctions.
Platform= CentOS 8 stream, gcc-8.4.1, compile options
"--without-qt --without-qscintilla --enable-address-sanitizer-flags
--disable-float-truncate --disable-docs"
Regards
Pascal
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sat 27 Feb 2021 03:25:02 PM UTC Name: test_nested_func.m Size: 1KiB
By: cdemills
<http://savannah.gnu.org/bugs/download.php?file_id=50935>
-------------------------------------------------------
Date: Sat 27 Feb 2021 03:25:02 PM UTC Name: test_nested_script.m Size: 212B
By: cdemills
<http://savannah.gnu.org/bugs/download.php?file_id=50936>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60137>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #60137] Closures: differences in behavior with MatLAB,
Pascal Dupuis <=