Modules.nas: Difference between revisions

m
(Initial draft)
 
Line 3: Line 3:
== Introduction and motivation ==
== Introduction and motivation ==
Nasal (Flightgears integrated scripting language) comes with a limited number of [[Nasal library|core functions]].  
Nasal (Flightgears integrated scripting language) comes with a limited number of [[Nasal library|core functions]].  
The language was extended by C++ functions as well as libraries written in Nasal (e.g. props, io, math, debug ...).  
The language was [[Howto:Extend Nasal|extended by C++ functions]], as well as libraries written in Nasal (e.g. [[Nasal library/props.nas|props]], [[Nasal library/io|io]], [[Nasal library/math|math]], [[Nasal library/debug|debug]] ...).  
The latter are stored in the FGDATA repository under /Nasal and loaded automatically by Flightgear.
 
The latter are stored in the [[Fgdata]] repository under /Nasal and loaded automatically by FlightGear.
For more information on how and when these files are loaded see [[Nasal Initialization]].
For more information on how and when these files are loaded see [[Nasal Initialization]].
To avoid loading files needlessly modules.nas was written to allow runtime (re-)loadable Nasal modules, that are loaded on demand only.
 
To avoid loading files needlessly modules.nas was written to allow run-time (re-)loadable Nasal modules, that are loaded on demand only.


== modules.nas ==
== modules.nas ==