20,741
edits
No edit summary |
No edit summary |
||
| Line 74: | Line 74: | ||
return naNil(); | return naNil(); //we already did all the namespace setup, so we can return naNil() here | ||
} | } | ||
| Line 81: | Line 81: | ||
Fire up the Nasal console, and run this: | Fire up the Nasal console, and run this: | ||
<syntaxhighlight lang="nasal"> | <syntaxhighlight lang="nasal"> | ||
# inspect the test namespace | |||
debug.dump( test ); | debug.dump( test ); | ||
# inspect the result of running our allocator function | |||
debug.dump( var t=test.new() ); | debug.dump( var t=test.new() ); | ||
# dump the x,y,z members to the console | |||
foreach(var e; ['x','y','z'] | foreach(var e; ['x','y','z'] | ||
print t[e]; | print t[e]; | ||
# run the hello method | |||
e.hello(); | e.hello(); | ||
</syntaxhighlight> | </syntaxhighlight> | ||