|
Talila Liu
Micro Builder
Join date: 29 Jan 2004
Posts: 132
|
03-24-2005 02:01
Now this may have been suggested already but It would be nice if functions like llListenControl(), llListenRemove(), and some others would return the value 0 or 1, 0 for failed, 1 for succes, True or False. it would be nice to know if the process was a success, since we kinda dont have a function like llListenActive(integer num).
I dunno maybe its just my personal preference.
~Talila
P.S. This is the only function I could think of off hand that it would be nice to have in, feel free to add others if you can think of them.
|
|
gene Poole
"Foolish humans!"
Join date: 16 Jun 2004
Posts: 324
|
03-24-2005 05:35
FWIW, careful design and good coding (probably) dispenses with the need for the return values about which you're asking. Listens don't "expire" unpredictably; there are some simple rules (eg. switching state clears any active listens, etc) which can help you design your script so that it will always be known whether or not a particular listen is active at any one time. If your question is more centered on bleeding during delays between requesting a listen to be removed, and the actual removal (if it's even possible), there are other ways around that . For instance, you could use a global var as an interlock. integer listening = TRUE; // global ... { ... listening = FALSE; llListenRemove(listenHandle); ... } ... listen( ... ) { if (!listening) return; }
Hope that's useful. 
|