Howto:Using Driver Hashes in Nasal: Difference between revisions

Jump to navigation Jump to search
Line 60: Line 60:


</syntaxhighlight>
</syntaxhighlight>
Instead of using arbitrary names for the keys, we can also use names that are self-explanatory to tell the reader what the  hash is trying to hide/encapsulate, for example:
<syntaxhighlight lang="nasal">
var myDriverHash = {
"yasim": { some_property:1},
"jsbsim": { some_property:2},
};


== Problem ==
== Problem ==

Navigation menu