[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50893] for loop index variable not initialize
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered |
Date: |
Thu, 18 May 2017 00:46:09 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0 |
Update of bug #50893 (project octave):
Status: Confirmed => Patch Submitted
_______________________________________________________
Follow-up Comment #10:
Try the attached changeset. It does not execute the loop body if the command
expression is empty. That resolves point #1. Even though the loop body is
not executed, the loop variable is still initialized to an empty value of the
same class as the command expression (for example, uint32 or cell or double).
(file #40730)
_______________________________________________________
Additional Item Attachment:
File name: bug50893.cset Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50893>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered,
Rik <=