bugGNU Octave - Bugs: bug #40008, classdef: parsing of class with...

 
 

bug #40008: classdef: parsing of class with empty properties fails

Submitter:  Richard <crobar>
Submitted:  Thu 12 Sep 2013 08:54:51 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Richard Crozier Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 28 Dec 2014 04:09:49 PM UTC, comment #1: 

Somewhere along the line this was fixed.  It works correctly with a tip from 12/28/14.  Closing report.

Rik <rik5>
Group administrator
Thu 12 Sep 2013 08:54:51 AM UTC, original submission:  

Parsing of the following class fails:


classdef aclass < handle

    properties
        % none
    end

    methods

       function  this = aclass()
           this;
       end

    end

end




octave-cli:3> temp = aclass()
parse error near line 5 of file /home/richard/src/octave/build/aclass.m

  syntax error

>>>     end


In Matlab


temp = aclass()
>> temp =

     aclass handle with no properties.
     Methods, Events, Superclasses


If I add a property in Octave it works fine.


octave-cli:5> temp = aclass()
class: aclass
superclass: handle
method block
constructor: aclass
property block
property: aproperty
constructor
temp = aclass object


Richard <crobar>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by crobar (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
    2014-12-28 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code