Howto:Serializing Nasal data structures: Difference between revisions

Jump to navigation Jump to search
Line 123: Line 123:


== Finally ==
== Finally ==
the original Nasal example, already contains a helper function to serialie a Nasal type:<ref>{{cite web
the original Nasal example, already contains a helper function to serialize a Nasal type:<ref>{{cite web
   |url    =  https://forum.flightgear.org/viewtopic.php?p=257123#p257123  
   |url    =  https://forum.flightgear.org/viewtopic.php?p=257123#p257123  
   |title  =  <nowiki> Re: String manipulation and file I/O (pm2thread) </nowiki>  
   |title  =  <nowiki> Re: String manipulation and file I/O (pm2thread) </nowiki>  
Line 131: Line 131:
   |script_version = 0.40  
   |script_version = 0.40  
   }}</ref>
   }}</ref>
We can also look at the implementation of debug.dump() and props.dump() respectively.


http://plausible.org/nasal/sample.nas
http://plausible.org/nasal/sample.nas
Line 172: Line 174:
}
}
</syntaxhighlight>
</syntaxhighlight>


== References ==
== References ==
{{Appendix}}
{{Appendix}}

Navigation menu