* John Denker -- Wednesday 17 January 2007:
> On 01/17/2007 02:31 PM, Melchior FRANZ wrote:
> > The documentation doesn't say that. It says exactly:
> > "Note that a listener can not remove itself, neither directly
> > nor indirectly."
> 
> Sorry, I missed that.

No, problem. And sorry for my rants. :-)  On the official
doucmentation page under http://plausible.org/nasal/ listeners
aren't mentioned at all. But I always update the Nasal page
when I change some listener or signal thing:

  
http://wiki.flightgear.org/flightgear_wiki/index.php?title=Nasal_scripting_language

I have now also implemented what you suggested: self-removable
listeners:

  var L = setlistener("/foo", func {
         print("Hi. I'm a one-shot listener function!");
         removelistener(L);
  });

It turned out that I need some of them, too. No way to further
delay that.  :-)

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.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to