Since I can use Object reference as parameters in my functions and the object handle is in fact NOT a pointer, is there really any reason of using (or even having) object handles? I just can't find that good reason.
The only difference I see is that I can reseat the object handle with different object and I can also use it as a return parameter of function.
I really don't know, I wanted to wrap my head around the need for object handles - especially the reason why I would want to use them, but since I can pass reference in functions, I can't find any reasonable reason to use them.
Is there some safety issue, speed issue or something else? Is there something obvious I don't see?
Give me some ideas. Thanks. Love the angelscript, I just want to understand it better.
Edited by Oscar1, 15 May 2013 - 07:01 PM.