Fulltext results:
- records
- <- Exceptions ^ ^ Functions -> ====== Records ====== Records are the foundation of Doomsday Script. Each namespace and module is a record, each object is a record, and classes are records, too. The ownership model of records is that there is
- functions
- <- Records ^ ^ Scopes -> ====== Functions ====== A function is defined in the current scope using a ''de... be changed. func5(c=5, a=100, b='OOO') ===== Records as arguments ===== Records are passed by non-owned reference in arguments. record myrec myrec.val = 'Original' print myrec.val
- scopes
- pe. * In a class definition, the scope is the [[records#classes|class namespace]]. ===== Global assignm... ion ''locals()'' returns the local namespace as a record. # script "test.ds" a = 'hello'; b = 'world'... t the module will receive a reference to the same record. The import statement can also be used to make a copy instead of regular importing. import record other This imports //other// (from a file called
- exceptions
- <- Statements and compounds ^ ^ Records -> ====== Exceptions ====== ===== Try and catch ===== Like in C... ccess a deleted object via an alias. try record temp reference = temp del temp