bugGNU Octave - Bugs: bug #36818, same line if + more

 
 

bug #36818: same line if + more

Submitted by:  None
Submitted on:  Mon 09 Jul 2012 06:26:43 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: InvalidAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.2
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 09 Jul 2012 07:47:18 PM UTC, comment #1:

1. You could probably do away with the ~=0 part. Anything unequal to 0 would be considered true

2. If you add a semicolon or comma after the if statement proper, the error is gone as well, like:
if (exist ('OCTAVE_VERSION')); more off; end

Contrary to the answer in your link to stackoverflow.com, I think this is not a buglet associated with the more function, but just sloppy syntax (sorry).
FYI, Matlab often complains in a similar fashion about that syntax (if ML could be considered an authorative comparison at all, of course)

Philip Nienhuis <philipnienhuis>
Project Member
Mon 09 Jul 2012 06:26:43 PM UTC, original submission:

I get a syntax error for the following line in octave 3.6.2:

while:

seems ok. Yet:

works nicely.

Is this a bug(?) related to non the parenthesized argument of more?

See:

http://stackoverflow.com/questions/11383614/octave-same-line-if-more

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by philipnienhuis (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 09 Jul 2012 07:47:18 PM UTCphilipnienhuisStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1