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

Jump to navigation Jump to search
m
no edit summary
m (http://wiki.flightgear.org/Namespaces_and_Methods)
mNo edit summary
Line 98: Line 98:
* bearing
* bearing


Now, to access any of these fields, we would use the "dot notation" by first specifying the name of the enclosing context (which is really just a fancy word for the name of the hash) and the name of the field we are interested in:
Now, to access any of these fields, we would use the "dot notation" by first specifying the name of the enclosing context (which is really just a fancy word for the name of the hash) and the name of the field we are interested in. You could read this as: LOCATION.FIELD (i.e. get FIELD out of location).


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">

Navigation menu