Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


#ActualOscar1

Posted 15 May 2013 - 07:01 PM

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.


#1Oscar1

Posted 15 May 2013 - 06:51 PM

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 use it as return parameter of function. But is it really all?

 

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.

Is there some safety issue, speed issue or something else?

 

Give me some ideas. Thanks. Love the angelscript, I just want to understand it better.

 

 

 


PARTNERS