Re: [Flightgear-devel] nasal problem

2006-12-13 Thread Melchior FRANZ
* Josh Babcock -- Wednesday 13 December 2006 17:51:
 When I include this nasal file in my ch53e-set.xml file I get an
 infinite loop. I don't know why, is there a listener attached to
 controls/lighting/panel-norm somewhere?

Nasal listeners are designed to refuse recursion. It's more likely
that the called function does something silly.

m.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


Re: [Flightgear-devel] nasal problem

2006-12-13 Thread Josh Babcock
Melchior FRANZ wrote:
 * Josh Babcock -- Wednesday 13 December 2006 17:51:
 When I include this nasal file in my ch53e-set.xml file I get an
 infinite loop. I don't know why, is there a listener attached to
 controls/lighting/panel-norm somewhere?
 
 Nasal listeners are designed to refuse recursion. It's more likely
 that the called function does something silly.


Well, I fixed it by putting the init function at the end of the file,
and calling the setlistener from within init(). No change to the called
function. No idea why this works, but it does. I'm sure someone will
explain it to me :)

Josh

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel