Next: , Previous: The init Method, Up: General Class Issues



5.1.3 The toRecord Method

Every class has a toRecord method, which returns a record containing all the aspects of the object that must be persistent (see Loading And Unloading. Note that reference to objects must be converted to their appropriate Oz names before being made part of the record, because the actual object code cannot be stored on disk. The names in question are only used for persistence purposes, and knowing them should give no privilege1.


Footnotes

[1] It is possible that the current method of doing toRecord, in that it is defined on MozBase, will turn out to be a security hole, because objects can lie about themselves. If so, it should be moved onto ActiveObject.