octave-maintainers
[Top][All Lists]
Advanced

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

Re: Help with properties()


From: Rik
Subject: Re: Help with properties()
Date: Fri, 22 Feb 2019 13:52:23 -0800

On 02/22/2019 11:22 AM, Nicholas Jankowski wrote:
> > > On Fri, Feb 22, 2019 at 2:07 PM Rik <address@hidden> wrote: > > Can someone provide some more on the classdef implementation by placing the > following code in a file testprop.m > > > >> x = testprop > Error using testprop > Error: File: testprop.m Line: 4 Column: 9 > A property or event may not use the same name as the name of the class (testprop). >
That's a new, but different, incompatibility.  I'll file a bug report about that too.  Can you try this slightly altered code ("testprop" renamed to "tstprop"?

-- START testprop.m --
classdef testprop

    properties
        tstprop = 0;
    end

    properties (Access = protected)
        protectedtestprop = 0;
    end

    properties (Hidden = true)
        hiddentestprop = 0;
    end

end
-- END testprop.m --

Then run

-- START code --
x = testprop
properties (x)
-- END code --

and upload the results.

--Rik



reply via email to

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