Fulltext results:
- records @script:walkthrough
- 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 @script:walkthrough
- 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
- language
- ime * Array * Dictionary * Function * Record ==== Built-in constants ==== * True * Fa... | ''globals'' | returns the global namespace as a record | | ''len'' | determines the length/size of the a... | | ''locals'' | returns the local namespace as a record | | ''members'' | returns the members of a record as a dictionary | | ''Number'' | converts argument to a
- scopes @script:walkthrough
- 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
- recutil @script:module
- dentifier_HTML~copyMissingMembers~@# ( #@Arg_HTML~Record,src~@#, #@Arg_HTML~Record,dest~@# ) Duplicates all members of the //src// record in the //dest// record without touching existing values in //dest//. Private members in //src// (begin wi
- reference
- no type safety or checking. Objects are called [[Record]]s and they represent native ''de::Record'' instances:<code>record myrec myrec.newMember = 100</code> * There are only modifiable arrays. Non-mod
- gui @script:module
- . #@Identifier_HTML~setDefaults~@# ( #@Arg_HTML~Record,d~@# ) Populate record //d// with the default configuration variables for a GUI app.
- record
- ====== Record ====== Records are simple data structures in [[:Doomsday Script]] that contain a set of un
- exceptions @script:walkthrough
- ccess a deleted object via an alias. try record temp reference = temp del temp