Sign in to follow this  

Using "this." in class functions

This topic is 3625 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
-_- 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

This topic is 3625 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this