Jump to content
  • Advertisement
Sign in to follow this  
Ksingh30

return Type

This topic is 4927 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Re: Estor.

Changing the topic slightly, could I ask why you have used the static keyword in the following line...


static node retVal;

...and in the other code snipet...


static node* retVal = new node;



I've never really found a use for the static keyword and just wondered why you have used it in the way you have.

Share this post


Link to post
Share on other sites
Advertisement
I (and others) have told you several times already: you must track the information ("which thing is pointed to") separately by yourself.

Share this post


Link to post
Share on other sites
Quote:
Original post by Anri
Re: Estor.

Changing the topic slightly, could I ask why you have used the static keyword in the following line...


static node retVal;

...and in the other code snipet...


static node* retVal = new node;



I've never really found a use for the static keyword and just wondered why you have used it in the way you have.


Ouch.... sorry that was copy/paste bug [smile] in second code there shold not be static keyword

this
static node* retVal = new node;

shold be
node* retVal = new node;

Thanks for pointing that out, Anri

Share this post


Link to post
Share on other sites
Re: Estor.

Aww, shucks - I thought you were going to teach me some earth-shattering concept! ^_^

Re: Ksingh30.

Sorry Dad.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!