| 03-21-2006, 06:35 PM | #1 |
Yea i know, the stupidest question ever, its probaly been posted a hundred times, but cant find it :(... i just realised i dont know how to destroy booleans lol, but you cant exactly destory it by setting it to false, cause that buggers other things up surly? and its not null, thats for handles... Any ideas? |
| 03-21-2006, 06:46 PM | #2 |
There are five basic value types in Warcraft 3: integer, reals, booleans, strings and handles. Only handles and strings leak and only handle leaks can be prevented. Conclusion, booleans do not leak! (Hope I'm not saying something idiotic again though) ~Daelin |
| 03-21-2006, 07:58 PM | #3 |
There is also the type 'code' (function pointers, example: ForGroup(group someGroup, code callback)). |
| 03-21-2006, 10:45 PM | #4 |
Anyway, be at pease, atomic types (bool, int, real) do not leak. |
| 03-22-2006, 02:51 PM | #5 |
Ok thx, i knew handles leak, but i thought parameters leak too, like you have to set integers to 0, strings to "" and reals to 0.00... Oviously not :)... thx peops EDIT: Blade, i dident notice that was you with your new avatar :) |
