octave-maintainers
[Top][All Lists]
Advanced

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

Re: Another request for classdef test in Matlab


From: Michael Goffioul
Subject: Re: Another request for classdef test in Matlab
Date: Fri, 4 Jan 2013 19:01:57 -0500

On Fri, Jan 4, 2013 at 6:45 PM, Philip Nienhuis <address@hidden> wrote:
bpabbott wrote
> On Jan 4, 2013, at 6:03 PM, Michael Goffioul wrote:
>
>> Could you also try with this class:
>>
>> classdef ClassA < handle
>>   properties
>>     x = 1;
>>   end
>>   methods
>>     function obj = ClassA (x)
>>       if nargin > 0
>>         obj.x = x;
>>       end
>>     end
>>     function value = get.x (obj)
>>       disp ('get.x');
>>       value = obj.x;
>>     end
>>   end
>> end
>>
>> Michael.
>
> I'm running 2013a as is Philip.  I haven't checked, but assume I'll get he
> same results as he has already reported.
>
> Ben

Excellent. Then I can go to bed ...  ;-)

Thanks, lads. Help appreciated :)

Michael.


reply via email to

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