[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64739] Class definition doesn't support prope
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #64739] Class definition doesn't support property validation |
Date: |
Mon, 2 Oct 2023 15:03:36 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64739>
Summary: Class definition doesn't support property validation
Group: GNU Octave
Submitter: None
Submitted: Mon 02 Oct 2023 07:03:34 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Josh Gardner
Originator Email: jgardner.public@pm.me
Open/Closed: Open
Release: 8.3.0
Discussion Lock: Any
Operating System: GNU/Linux
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 02 Oct 2023 07:03:34 PM UTC By: Anonymous
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
properties
a = 3
b double
end
end
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
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64739>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64739] Class definition doesn't support property validation,
anonymous <=