chat in virtual worlds
#8

Quote:
Originally Posted by Daren_Jacobson
since you only use i inside the loop it would be best to create it at the beggining of the for. 'for(new i...'
It's habit and for such a small snippet it won't have any difference as the callback ends on the very next lines directly after the loop has ended so it gets destroyed then instead of that millisecond earlier if it was indeed local to only the loops scope.

You are correct though dude don't get me wrong, locals are always better IMO also so thankyou for the correction.
Reply


Messages In This Thread
chat in virtual worlds - by Laurentt - 20.04.2009, 18:22
Re: chat in virtual worlds - by Laurentt - 20.04.2009, 19:05
Re: chat in virtual worlds - by Donny_k - 20.04.2009, 19:13
Re: chat in virtual worlds - by Rks25 - 20.04.2009, 19:14
Re: chat in virtual worlds - by Donny_k - 20.04.2009, 19:30
Re: chat in virtual worlds - by Daren_Jacobson - 20.04.2009, 20:01
Re: chat in virtual worlds - by ICECOLDKILLAK8 - 20.04.2009, 20:06
Re: chat in virtual worlds - by Donny_k - 20.04.2009, 20:30

Forum Jump:


Users browsing this thread: 2 Guest(s)