[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44036] classdef classes can not be defined on

From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #44036] classdef classes can not be defined on the command line or in script files (only standalone files)
Date: Sun, 3 Mar 2019 14:41:42 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #6, bug #44036 (project octave):

I'm strongly leaning toward closing this as "Won't Fix" because it simplifies
the implementation to not have to worry about classdef objects being defined
anywhere except inside .m files that contain classdef blocks and that are
named the same as the classdef object.

Matlab also requires that classdef constructors and all functions that use
dots in their names, including "Converter methods that must use the package
name as part of the class name because the class is contained in packages" and
"Property set and get access methods".

Maybe these requirements are arbitrary and we could work around them.  But I'd
rather not, unless we can prove without a doubt that defining classdef blocks
in scripts or at the command line or putting the constructor in a separate
file won't cause trouble for us in the future.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]