octave-bug-tracker
[Top][All Lists]
Advanced

[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:51:45 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0

Follow-up Comment #4, bug #50893 (project octave):


>> clear
>> xd = zeros (1, 0);
xi = zeros (1, 0, 'int32');
for kd = xd; end
for ki = xi; end
whos
  Name      Size            Bytes  Class     Attributes

  kd        0x0                 0  double              
  ki        0x0                 0  double              
  xd        1x0                 0  double              
  xi        1x0                 0  int32               

>> 




>> clear
>> for k = zeros (0,3)
  disp (k);
end
>> whos
  Name      Size            Bytes  Class     Attributes

  k         0x1                 0  double     




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50893>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]