octave-maintainers
[Top][All Lists]
Advanced

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

Re: OOP and load/save


From: Judd Storrs
Subject: Re: OOP and load/save
Date: Thu, 23 Apr 2009 12:48:15 -0400

On Thu, Apr 23, 2009 at 12:32 PM, Robert T. Short <address@hidden> wrote:
Do we really need to worry about converting to a structure?  MATLAB does it, but that seems pretty useless to me.  Maybe just issue an error.  Although, perhaps if we derived "octave_class" from "octave_struct", it wouldn't be too hard?  That would also take care of some of the "FIXME" items you have in ov_class.cc where code is the same between the two files.

I don't know anything about the interpreter's internals, but it occurs to me that another approach would be to always read in objects from files as structs always and then attempt to do whatever class(obj,name) does. That way if the class() call fails, the struct is already there?

--judd



reply via email to

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