[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65841] for loop deletes variable
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #65841] for loop deletes variable |
Date: |
Wed, 5 Jun 2024 14:56:06 -0400 (EDT) |
Update of bug #65841 (group octave):
Category: None => Interpreter
Status: None => Wont Fix
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
The expression in a for loop is any valid Octave code and is executed exactly
as it appears. By itself,
k = 1:0
k = [](1x0)
returns an empty matrix which is exactly what it should do when the same
expression is used in a for loop. It's odd that 4.2.2 may have produced a
different result, but I can verify that by version 4.4.1 it had been fixed to
produce an empty matrix. The same code run in Matlab also produces an empty
matrix so this behavior need to stay as it is.
Marking as Won't Fix and closing report.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65841>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/