View Single Post
  #8  
Old 05-09-2007, 02:05 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by contiga View Post
(@ "-Playerlist")..... can be changed into just "-Playerlist".function();
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.
__________________
Skyld
Reply With Quote