save_object |
Discworld driver help |
save_object |
Name
save_object() - save the values of variables in an object into a file
Synopsis
int save_object( string name, int flag );
Description
Save all values of non-static variables in this object in the file `name'. valid_write() in the master object determines whether this is allowed.
The optional 'flag' argument is a bitmap where bit 1 indicates whether or not to save empty variables (ones that are zero) and bit 2 indicates whether to use compression. Object variables and function pointers always save as 0.
save_object() returns 1 for success, 0 for failure.