Can someone tell me the difference
#5

Quote:
Originally Posted by Healian
Посмотреть сообщение
May i ask for these different uses cuz i see no difference
For example, stocks are useful when writing libraries : You are stocking functions for an eventual use, if a stock function is used, it will be compiled, if not, it will be discarded from the compiled code.

Public functions are always compiled, no matter if you make use of them or not, wich is why you get a warning when not using them.

__________

In short words :

- Stocks are intended for keeping a list of functions that you will eventually use in the course of development, they can be sorted in libraries (Ex : File manipulation libraries)
- Public functions are used for (almost) all the rest : The actual functions that represent the structure of your code, Callbacks, etc.
Reply


Messages In This Thread
Can someone tell me the difference - by Healian - 14.08.2012, 22:05
Re: Can someone tell me the difference - by Kindred - 14.08.2012, 22:08
Re: Can someone tell me the difference - by Eony - 14.08.2012, 22:10
Re: Can someone tell me the difference - by Healian - 14.08.2012, 22:23
Re: Can someone tell me the difference - by Eony - 14.08.2012, 23:08

Forum Jump:


Users browsing this thread: 3 Guest(s)