bugGNU Octave - Bugs: bug #32107, hierarchical classes constructor...


bug #32107: hierarchical classes constructor failure

Submitter:  Volkmar Glauche <glauche>
Submitted:  Wed 12 Jan 2011 02:27:33 PM UTC
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Wed 19 Jan 2011 08:31:55 PM UTC, comment #1: 

please close this bug as invalid - I will submit a new version under a different topic.

Volkmar Glauche <glauche>
Wed 12 Jan 2011 02:27:33 PM UTC, original submission:  

I have got 3 classes that form a hierarchy (see attached .tgz file):

 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

Volkmar Glauche <glauche>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #22400:  deriv2obj.tgz added by glauche (3KiB - application/x-compressed-tar)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by glauche (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.


    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-20 jwe StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed
    2011-01-12 glauche Attached File- Added deriv2obj.tgz, #22400

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code