20,741
edits
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
new: func( {{{signature|arg...}}} ) { | new: func( {{{signature|arg...}}} ) { | ||
# creates a temporary object that inherits from {{{name|myClass}}} | # creates a temporary object that inherits from {{{name|myClass}}} | ||
# what is {{{temporary|obj}}} here, will later on be 'me' in the actual object | |||
var {{{temporary|obj}}} = { {{Nasal Inherit from|{{{name|myClass}}} }} }; | var {{{temporary|obj}}} = { {{Nasal Inherit from|{{{name|myClass}}} }} }; | ||
# do any other object setup here, such as for example | # do any other object setup here, such as for example | ||
{{{temporary|obj}}}.message = "Hello World"; | {{{temporary|obj}}}.message = "Hello World"; | ||