bugGNU Octave - Bugs: bug #60941, Whitespace now causes parse error...


bug #60941: Whitespace now causes parse error for postfix increment / decrement operators

Submitted by:  None
Submitted on:  Mon 19 Jul 2021 03:47:45 PM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Confirmed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  dev
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.


Fri 23 Jul 2021 02:35:44 PM UTC, comment #3: 

I'm not sure what the best solution is for both improving Matlab compatibility and continuing to support Octave's extended set of operators.  I've opened a discussion here:


John W. Eaton <jwe>
Project Administrator
Mon 19 Jul 2021 03:55:56 PM UTC, comment #2: 

Possibly related to bug #60882.
CC'ing jwe.

Markus M├╝tzel <mmuetzel>
Project Member
Mon 19 Jul 2021 03:48:26 PM UTC, comment #1: 

Add to say: Octave version is 7.0.0, hg id bc19d9360bac

Mon 19 Jul 2021 03:47:45 PM UTC, original submission:  

This behavior was found while testing something in bug #60920:

octave:1> foo = 0
foo = 0
octave:2> foo ++
error: foo used as variable and later as function
octave:3> foo++
ans = 0
octave:4> foo
foo = 1
octave:5> ++ foo
ans = 2

Apparently inserting a space after a variable when calling a postfix increment or decrement operator now causes a variable/function parse error.



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

Attach Files:

No files currently attached


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by mmuetzel

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

    Only project members can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-07-19 mmuetzel StatusNone => Confirmed
        Dependencies- => Depends on bugs #60882
        Carbon-Copy- => Added jwe

    Back to the top

    Powered by Savane 3.6