| Export can export objects and classes to a directory. Get[directory] loads the automatically created "init.m" file that reads in all necessary definitions without the need of loading the class package. |
| Export[directory, object] exports object and all related objects into a file "object.m" written to directory. |
| Export[directory, class] exports class into a file "class.m" written to directory. The file contains all definitions directly related to class such as parent class definitions and automatically created definitions. |
This loads the package.
First, we define a class with one field bound to the class and another one bound to an object.
We create an object.
Classes as well as objects can be exported into a directory. The message is a hint that the generated runtime will only work with the current license, while the ClassMessage[] wrapper is only used to format the filenames.
Finally, we remove the created directories.
|