Fulltext results:
- records
- f 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 always a single owner for a record, and if that owner gets destroyed, all records ow... ariables in scripts. A script variable may own a record, or simply reference one owned by someone else. W
- functions
- re passed by non-owned reference in arguments. record myrec myrec.val = 'Original' print myrec.val ... ce as argument. In the example below, the created record exists only for the duration of the function call... is initialized with a non-owned reference to the record. This non-owned reference is returned, and thus a... # The following should be avoided: a = do_init(Record()) # returns null ref! <note>Avoid using ''Reco
- scopes
- 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... e on the import path), makes an owned copy of the record, and assigns it to a local variable named //other
- exceptions
- ccess a deleted object via an alias. try record temp reference = temp del temp