20,741
edits
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: |