bugGNU Octave - Bugs: bug #47174, inf not allowed as range bound in...

 
 

bug #47174: inf not allowed as range bound in for loop

Submitter:  Carlo de Falco <cdf>
Submitted:  Tue 16 Feb 2016 10:14:15 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 16 Feb 2016 10:45:13 PM UTC, comment #2: 

you are right sorry I did not notice the previous report,
I have no strong opinion on how to handle this though, I
just stumbled on a weird matlab example that was using it ...


Carlo de Falco <cdf>
Group Member
Tue 16 Feb 2016 10:32:30 PM UTC, comment #1: 

Carlo, This is a duplicate of bug #45143.  You may want to express an opinion there.

Lachlan Andrew <lachlan>
Tue 16 Feb 2016 10:14:15 PM UTC, original submission:  

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.

Carlo de Falco <cdf>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by cdf (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-17 rik5 Open/ClosedOpen Closed
    2016-02-16 lachlan StatusNone Duplicate
        Dependencies- Depends on bugs #45143

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code