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


bug #32107: hierarchical classes constructor failure

Submitted by:  Volkmar Glauche <glauche>
Submitted on:  Wed 12 Jan 2011 02:27:33 PM UTC  
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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 File(s):

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
  • -unavailable- added by jwe (Updated the item)
  • -unavailable- added by glauche (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 20 Jan 2011 08:32:18 AM UTCjweStatusNone=>Invalid
    Wed 12 Jan 2011 02:27:33 PM UTCglaucheAttached File-=>Added deriv2obj.tgz, #22400

    Back to the top

    Powered by Savane 3.1-cleanup1