Re: [Flightgear-devel] Nasal/*.nas ... order of loading, #include ..., require(...)

2010-02-12 Thread Torsten Dreyer
On my machine I observe that the various scripts in the Nasal/ directory get loaded in some hard-to-predict order. The scripts get loaded in the order of appearence in the directory. There is no specific order specified and the order might depend on the operating system. On *nixes opendir()

[Flightgear-devel] Nasal/*.nas ... order of loading, #include ..., require(...)

2010-02-11 Thread John Denker
On my machine I observe that the various scripts in the Nasal/ directory get loaded in some hard-to-predict order. That means that if you write a script called foo.nas, it's hard to know whether it will get processed before or after math.nas and/or props.nas. So the question is, what to do if

Re: [Flightgear-devel] Nasal/*.nas ... order of loading, #include ..., require(...)

2010-02-11 Thread Csaba Halász
On Thu, Feb 11, 2010 at 10:59 PM, John Denker j...@av8n.com wrote: On my machine I observe that the various scripts in the Nasal/ directory get loaded in some hard-to-predict order. That means that if you write a script called foo.nas, it's hard to know whether it will get processed before

Re: [Flightgear-devel] Nasal/*.nas ... order of loading, #include ..., require(...)

2010-02-11 Thread John Denker
On 02/11/2010 04:11 PM, Csaba Halász wrote: On Thu, Feb 11, 2010 at 10:59 PM, John Denker j...@av8n.com wrote: On my machine I observe that the various scripts in the Nasal/ directory get loaded in some hard-to-predict order. That means that if you write a script called foo.nas, it's hard