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

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

                 Summary: for loop index variable not initialized unless loop
is entered
                 Project: GNU Octave
            Submitted by: octavebugs
            Submitted on: Fri 28 Apr 2017 06:19:28 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I ran into a little inconsistency between MATLAB and Octave. MATLAB
initializes the loop index variable as empty if the loop is not entered.

MATLAB

>> clear
>> for k=1:0;end
>> whos
  Name      Size            Bytes  Class     Attributes

  k         0x0                 0  double              


Octave

>> clear
>> for k=1:0;end
>> whos
>>





    _______________________________________________________

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]