* Melchior FRANZ -- Friday 06 April 2007:
>   foo.switch(1)   ... turn on  (or any other value >0)
>   foo.switch(0)   ... turn off
>   foo.switch(-2)  ... turn on for two cycles
> 
> This doesn't break compatibility (who used negative number?), and it even
> looks like "up to 2 times", or from 0-2. And if you want that to be define
> at construction time, then you can still write:
> 
>   var foo = aircraft.light.new("something", [1,1,1,1]).switch(-10);

Ahh, no wait. You need that to be triggered from the switch property,
of course. Then another setter method is probably the best solution.

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to