Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualOlof Hedman

Posted 07 January 2013 - 04:22 AM

Maybe I'm nitpicky, but isn't it a bit wrong (and slightly confusing) to say that you "return an object as a pointer"?

Too me, that doesn't really make sense.
What you do is "returning a pointer that points to the object".

The pointer itself is an object too, a very different object then the class object it (maybe) points to.
I think that remembering this makes the answer more obvious.

But again, I'm not even a native english speaker, so maybe I read too much into the grammar....

#1Olof Hedman

Posted 07 January 2013 - 04:21 AM

Maybe I'm nitpicky, but isn't it a bit wrong (and slightly confusing) to say that you "return an object as a pointer"?

 

Too me, that doesn't really make sense. 

What you do is "returning a pointer that points to the object".

 

The pointer itself is an object too, a very different object then the class object it (maybe) points to.

I think that remembering this makes the answer more obvious.


PARTNERS