| 07-01-2004, 07:55 AM | #1 | |
Hi. I posted this in the General Development forum due to a lack of foresight and a fellow forumer told me to post this here... Quote:
I also have another JASS question now that I think of it... Does local variables actually need to be dereferenced? Are they automatically dereferenced if you return or end the function? There have been many topics similar to this but I find that so far all those that I've read did not explain this... A few more: Is there any IDE that you recommend to edit JASS with? Is there an API that explains the functions in common.j/Blizzard.j/etc. other than http://jass.sourceforge.net/doc/ ? (In fact they don't explain the functions there :/) |
| 07-01-2004, 10:23 AM | #2 |
There are actually two functions that serve as starting points. function config is called when the map is started when you join a game or create one before the slots are displayed. function main is then called when the map is loaded (still while the loading screen is displayed). Local variables that are of a basic type (real, integer, ...) are automatically destroyed at the end of scope but there is a bug that prevents handles (units, groups, locations) from being properly dereferenced at the end of scope of a local variable. That can cause (small) memory leaks. It is far more important to destroy what the handle points to though. For IDE look in the sticky about JASS development environments. |
| 07-01-2004, 10:08 PM | #3 |
My Jass edior Is anthor Good Ide if you can't get the other To work and enjoy jass. |
