octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #32107] hierarchical classes constructor failu


From: Volkmar Glauche
Subject: [Octave-bug-tracker] [bug #32107] hierarchical classes constructor failure
Date: Wed, 12 Jan 2011 14:27:34 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13

URL:
  <http://savannah.gnu.org/bugs/?32107>

                 Summary: hierarchical classes constructor failure
                 Project: GNU Octave
            Submitted by: glauche
            Submitted on: Mi 12 Jan 2011 14:27:33 GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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





    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mi 12 Jan 2011 14:27:33 GMT  Name: deriv2obj.tgz  Size: 3kB   By:
glauche

<http://savannah.gnu.org/bugs/download.php?file_id=22400>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32107>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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