[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50893] for loop index variable not initialize
From: |
Ceral Paquet |
Subject: |
[Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered |
Date: |
Fri, 28 Apr 2017 14:57:57 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0 |
Follow-up Comment #5, bug #50893 (project octave):
A few more cases. The scalar index seems well behaved, the array index not so
much.
>> clear; for k = zeros (3,0,'int32'); disp(k); end; whos
Name Size Bytes Class Attributes
k 0x0 0 double
>> clear; for k = zeros (0,3,'int32'); disp(k); end; whos
Name Size Bytes Class Attributes
k 0x1 0 int32
>> clear; for k = zeros (0,3); disp(k); end; whos
Name Size Bytes Class Attributes
k 0x1 0 double
>> clear; for k = zeros (3,3); disp(k); end; whos
0
0
0
0
0
0
0
0
0
Name Size Bytes Class Attributes
k 3x1 24 double
_______________________________________________________
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, Ceral Paquet, 2017/04/28
- [Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered, John W. Eaton, 2017/04/28
- [Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered, Rik, 2017/04/28
- [Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered, Rik, 2017/04/28
- [Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered, Ceral Paquet, 2017/04/28
- [Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered,
Ceral Paquet <=
- [Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered, Rik, 2017/04/28
- [Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered, John W. Eaton, 2017/04/28
- [Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered, Ceral Paquet, 2017/04/29
- [Octave-bug-tracker] [bug #50893] for loop index variable not initialized unless loop is entered, Rik, 2017/04/29