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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47174] inf not allowed as range bound in for


From: Carlo de Falco
Subject: [Octave-bug-tracker] [bug #47174] inf not allowed as range bound in for loop
Date: Tue, 16 Feb 2016 22:14:16 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:43.0) Gecko/20100101 Firefox/43.0

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

                 Summary: inf not allowed as range bound in for loop
                 Project: GNU Octave
            Submitted by: cdf
            Submitted on: Tue 16 Feb 2016 11:14:15 PM CET
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

The following code returns only a warning in matlab:


>> for ii = 1:inf, ii, if (ii>2), break, end,  end 
Warning: FOR loop index is too large. Truncating to 9223372036854775807. 
 ii =    1
 ii =    2
 ii =    3
>> 


while it is an error in Octave


>> for ii = 1:inf, ii, if (ii>2), break, end,  end 
error: invalid range
>>


I'm not sure this feature is worth copying ...

c.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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