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

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

[Octave-bug-tracker] [bug #39141] saved objects of user created class fa


From: anonymous
Subject: [Octave-bug-tracker] [bug #39141] saved objects of user created class fail to load without explicitly loading constructor
Date: Sun, 02 Jun 2013 23:42:38 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0

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

                 Summary: saved objects of user created class fail to load
without explicitly loading constructor
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sun 02 Jun 2013 11:42:37 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Willem Atsma
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

To reproduce:
 - create an object of a class (e.g. "quaternion")
 - save object to file
 - exit octave
 - start octave
 - load file

I created a custom object "transform" which has a data member "quaternion"
(from the forge package) and ran into this behaviour. If I call the
constructor before attempting to load the file it works as it should.


octave:1> default_save_options ('-text')
octave:2> load test.txt 
error: Invalid call to quaternion.  Correct usage is:

 -- Function File: Q = quaternion (W)
 -- Function File: Q = quaternion (X, Y, Z)
 -- Function File: Q = quaternion (W, X, Y, Z)


warning: call to constructor for class quaternion failed


Similarly when I load a single "transform" saved in the matlab binary format:


octave:1> default_save_options 
ans = -mat7-binary
octave:2> load test.mat
error: Invalid call to quaternion.  Correct usage is:

 -- Function File: Q = quaternion (W)
 -- Function File: Q = quaternion (X, Y, Z)
 -- Function File: Q = quaternion (W, X, Y, Z)


warning: call to constructor for class quaternion failed
warning: load: element has been converted to a structure
warning: call to constructor for class transform failed
warning: load: element has been converted to a structure





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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