View Single Post
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-26-2006 , 14:14   Re: The Use of Stocks
Reply With Quote #8

Quote:
Originally Posted by BAILOPAN
Stocks are not public. Furthermore, they are always parsed by the compiler ('stock' doesn't mean the compiler simply ignores it). The only difference between a stock and a normal function is that if it is unreferenced at assembly time, it is not included into the final code.

This is ideal for include files where users might not be using everything, and variables that might not be used (like Greenberet noted).
Thanks, I wasn't sure about that. I saw someone use a set_task on a stock a while ago and the person who used it claimed that it worked.

I don't see anything else wrong that I said other than that, and nothing wrong in the main post, so I'm not going to go through the hassle of changing anything (since editing code is still broken).
__________________
Hawk552 is offline
Send a message via AIM to Hawk552