Using (un-identified) blocks inside functions
I didn’t see it in documentation, and I haven’t seen that in any plugin. It doesn’t show any warnings in compilation, so I suppose it works fine for cleaning variables that will not be used in the rest of function.
I know they can always be broken into two or more functions, I just wondered if it’s ok in Pawn… Crap example: Code:
|
maybe you should set len to something, your format call looks terrible (gasp, the entire code snippet looks awful). use something like that:
Code:
edit: but yes, theoretically you could use blocks there.. |
thanks,
well the example was terrible and wrong (len...) but tell me is it a bad practice to use blocks like these? - just noted I could make less memory usage in some parts of my code... |
Quote:
|
| All times are GMT -4. The time now is 05:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.