20,741
edits
mNo edit summary |
m (→A hash based version (recommended): foreach index expression not an lvalue) |
||
Line 404: | Line 404: | ||
var waypoints[4] = new_waypoint(); | var waypoints[4] = new_waypoint(); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Once we start using a hash as a template for other hashes using the "parents" vector, we are actually creating a class that is copied to each new hash. This new copy of the class is called an "object" after creation. | Once we start using a hash as a template for other hashes using the "parents" vector, we are actually creating a class that is copied to each new hash. This new copy of the class is called an "object" after creation. |