bugGNU Octave - Bugs: bug #64739, classdef definition doesn't...


bug #64739: classdef definition doesn't support property validation

Submitter:  None
Submitted:  Mon 02 Oct 2023 07:03:34 PM UTC
Category:  Classdef Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Josh Gardner Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 8.3.0
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 04 Oct 2023 04:19:46 PM UTC, comment #1: 

Confirmed with a recent head (hg id e0a6dd4f6fef).

Markus M├╝tzel <mmuetzel>
Group administrator
Mon 02 Oct 2023 07:03:34 PM UTC, original submission:  

Octave is unable to parse property validation syntax in class definitions.

Mathworks documentation: https://www.mathworks.com/help/matlab/matlab_oop/defining-properties.html#mw_4cc53969-cb2c-4fe9-a97e-05e9500f52ba

The following class file causes Octave to give a parse error on the line where the property type is specified:

classdef testclass
    a = 3
    b double

This also happens with the older undocumented property validation syntax (replacing "b double" with "b@double"), discussed here: https://undocumentedmatlab.com/articles/setting-class-property-types



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

Attach Files:

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 mmuetzel (Posted a comment)
  • -email is unavailable- added by None (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-01-23 mmuetzel CategoryInterpreter Classdef
    2023-10-04 mmuetzel Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
        Item GroupMatlab Compatibility Feature Request
        StatusNone Confirmed
        Operating SystemGNU/Linux Any
        SummaryClass definition doesn't support property validation classdef definition doesn't support property validation

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code