Talk:LlListenControl

From Second Life Wiki
Revision as of 00:20, 27 November 2007 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search

Why does this function exist? Can it be saving much on doing a llListenRemove then new llListen? Placid Kidd 18:42, 5 July 2007 (PDT)

It seems to me that this function was added to cut down on memory usage. Calling llListenControl is much more efficient than llListenRemove, and then calling llListen later on. Also, you can forget about the name of the person you are listening to, as well as everything else you use in llListen. More or less, it's just there to save space. --Xaviar Czervik 18:24, 26 November 2007 (PST)
I don't agree with Xaviar's analysis; allowing listens to be disabled I imagine would actually use more memory then not. When LSL was designed many functions were created. Programing language programmers don't know what people are going to do with the language; they make arbitrary design decisions that may or may not be beneficial down the road. It's much more likely that the programmer thought someone would find llListenControl useful. The target events have a similar design strangeness. -- Strife Onizuka 23:20, 26 November 2007 (PST)