Howto:Start using vectors and hashes in Nasal: Difference between revisions

Jump to navigation Jump to search
m
Line 507: Line 507:
var wp = waypoint.new();
var wp = waypoint.new();
</syntaxhighlight>
</syntaxhighlight>
== A generic constructor ==


Sometimes, you'll work with classes that do not have any custom constructor functions - but you can easily create a generic constructor, too:
Sometimes, you'll work with classes that do not have any custom constructor functions - but you can easily create a generic constructor, too:

Navigation menu