View Single Post
  #9  
Old 05-10-2007, 12:28 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Skyld View Post
I do not see the benefit.

(@ "-Playerlist").function() makes it entirely clear that you are working with the -Playerlist object.

"-Playerlist".function() makes it look like you are performing a function on the string itself, which could be confusing to some people, especially if they have used other scripting languages where that syntax would mean you are always performing functions on the string.
I second that.

Also,
temp.i = findWeapon( "-Playerlist" );
temp.i.function();
__________________
Reply With Quote