Fulltext results:
- records @script:walkthrough
- <- 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 @script:walkthrough
- <- 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
- 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
- record
- ====== Record ====== Records are simple data structures in [[:Doomsday Script]] that contain a set of unordered, named variables and subrecords. Records can be nested inside other records up to arbitrary depth. Records are fully serializable (which the exc
- scopes @script:walkthrough
- 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
- recutil @script:module
- Module that contains utilities for manipulating records. ===== Functions ===== #@Identifier_HTML~copyMissingMembers~@# ( #@Arg_HTML~Record,src~@#, #@Arg_HTML~Record,dest~@# ) Duplicates all members of the //src// record in the //dest// record without touching existing
- 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
- defs @script:module
- kup'' is a dictionary that maps IDs to definition records. <code> $ Defs.things.idLookup['possessed'] ⇒ _... in this list are also available in the definition records as ''<nowiki>__order__</nowiki>''. $ len(Def
- gui @script:module
- . #@Identifier_HTML~setDefaults~@# ( #@Arg_HTML~Record,d~@# ) Populate record //d// with the default configuration variables for a GUI app.
- exceptions @script:walkthrough
- <- 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