Jump to content
  • Advertisement
Sign in to follow this  
39ster

Using "this." in class functions

This topic is 3820 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

Maybe in a future release you could make it so you dont have to put "this." in front of class variables. I would much like to do this:
class myClass
{
  int x, y;
  void someFunc()
  {
    x = 1;
    y = 2;
  }
}
rather than
class myClass
{
  int x, y;
  void someFunc()
  {
    this.x = 1;
    this.y = 2;
  }
}
especially since the game will be entirely class based.

Share this post


Link to post
Share on other sites
Advertisement
-_- I guess i must be using an older version. Ill check what version it is when i get home.

EDIT: Angelscript2.7.1 is what im using. Need to update. Thanks.

[Edited by - 39ster on January 9, 2008 1:48:33 AM]

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!