octave-maintainers
[Top][All Lists]
Advanced

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

Re: [classdef] Can someone test this for me?


From: Серёжа Плотников
Subject: Re: [classdef] Can someone test this for me?
Date: Tue, 15 Oct 2013 20:06:44 +0200

results

>> c = ?classderiv
c = 
  class with properties:
                     Name: 'classderiv'
              Description: ''
      DetailedDescription: ''
                   Hidden: 0
                   Sealed: 0
                 Abstract: 0
          ConstructOnLoad: 0
         HandleCompatible: 0
          InferiorClasses: {0x1 cell}
        ContainingPackage: []
             PropertyList: [0x1 meta.property]
               MethodList: [3x1 meta.method]
                EventList: [0x1 meta.event]
    EnumerationMemberList: [0x1 meta.EnumeratedValue]
           SuperclassList: [1x1 meta.class]
ans =
classderiv

ans =
empty

ans =
fun

>> addpath a
>> c = ?classderiv
c = 
  class with properties:
                     Name: 'classderiv'
              Description: ''
      DetailedDescription: ''
                   Hidden: 0
                   Sealed: 0
                 Abstract: 0
          ConstructOnLoad: 0
         HandleCompatible: 0
          InferiorClasses: {0x1 cell}
        ContainingPackage: []
             PropertyList: [0x1 meta.property]
               MethodList: [3x1 meta.method]
                EventList: [0x1 meta.event]
    EnumerationMemberList: [0x1 meta.EnumeratedValue]
           SuperclassList: [1x1 meta.class]
ans =
classderiv

ans =
empty

ans =
fun

New ML Session:

>> x = classderiv
x = 
  classderiv with no properties.
>> x.fun
ans =
     0
>> addpath a
>> x.fun
ans =
     0
>> y = classderiv
y = 
  classderiv with no properties.
>> y.fun
ans =
     0

Be happy,
Sergey


2013/10/15 Michael Goffioul <address@hidden>
On Tue, Oct 15, 2013 at 1:45 PM, Серёжа Плотников <address@hidden> wrote:
Hi Michael,

below are the results from R2013a

>> c = ?classderiv
Method 'fun' in class 'classderiv' conflicts with the Sealed method from the superclass definition in
'classbase'.
 
>> c.MethodList
Undefined variable "c" or function "c.MethodList".

New ML Session:

>> x = classderiv
Error using classderiv
Method 'fun' in class 'classderiv' conflicts with the Sealed method from the superclass definition in
'classbase'.
 
>> x.fun
Undefined variable "x" or function "x.fun".


Interesting. Could you also try this variant for me?

Move @classderiv/fun.m to a/@classderiv/fun.m, assuming "a/" subdir is not automatically on your Matlab path. Then at the prompt:

c = ?classderiv
addpath a
c = ?classderiv

Then restart Matlab and try this:

x = classderiv
x.fun
addpath a
x.fun
y = classderiv
y.fun

Thanks,
Michael.



reply via email to

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