Raised This Month: $ Target: $400
 0% 

Examine this plugin.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-23-2008 , 21:14   Re: Examine this plugin.
Reply With Quote #10

Quote:
Originally Posted by Spunky View Post
Why do people sometimes call sizeof() when they already know the size? Completely unnecessary.

Otherwise, nice optimization. And why not create them in the loop? They're local to the loop and it looks nicer. Does the same exact thing and they're freed when the loop ends.
This allows changes in array sizes without messing up code. Since it's a compiler function, it won't cause any real code difference, but may help maintenance, specially for global vars used in several places in the code.
__________________

Community / No support through PM
danielkza is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode