Wed 12 Jan 2011 02:27:33 PM UTC, original submission:
I have got 3 classes that form a hierarchy (see attached .tgz file):
baseobj
derivobj - based on baseobj
deriv2obj - based on derivobj
when I try to create two or more instances of deriv2obj, only the first one is created, afterwards octave returns an error message:
octave:2> d21=deriv2obj
d21 =
deriv2obj object: 1-by-1
derivobj object: 1-by-1
scalar structure containing the fields:
val =
scalar structure containing the fields:
extra =
{
[1,1] =
}
scalar structure containing the fields:
extra2 =
{
[1,1] =
}
octave:3> d22=deriv2obj
error: class: `derivobj' is invalid as a class name in this context
error: called from:
error: /home/volkmar/octave/@derivobj/derivobj.m at line 51, column 6
Also, although d21 was displayed just fine after creation, I can't display it anymore after trying to create d22:
octave:3> d21
error: display: not defined for class "deriv2obj"
error: called from:
error: /export/spm-devel/octave/octave/scripts/general/display.m at line 37, column 5
octave:3> whos d21
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
d21 1x1 0 deriv2obj
Total is 1 element using 0 bytes
|