bugGNU Octave - Bugs: bug #49819, classdef: parse error in...

 
 

bug #49819: classdef: parse error in properties block

Submitter:  Amro <amro_octave>
Submitted:  Fri 09 Dec 2016 11:00:31 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 10 Dec 2016 04:38:29 PM UTC, comment #1: 

I checked in the following change on the stable branch:

http://hg.savannah.gnu.org/hgweb/octave/rev/194481349d22

Closing report as this appears to fix the problem for me.

John W. Eaton <jwe>
Group administrator
Fri 09 Dec 2016 11:00:31 PM UTC, original submission:  

The following class throws a syntax error in Octave 4.2.0:


classdef MyClass
    properties
        x = 0
    end
end



>> obj = MyClass
parse error near line 4 of file C:\dev\MyClass.m

  syntax error

>>>         x = 0
                  ^


If I add a semicolon at the end of the line "x = 0;" then it works. MATLAB doesn't require the semicolon, and works either way:


Amro <amro_octave>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

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 amro_octave (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-12-10 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code