🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Using "this." in class functions

Started by
1 comment, last by 39ster 16 years, 5 months ago
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.
Advertisement
What you're asking for was implemented with version 2.8.0 in February 2007.

What version are you using?

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

-_- 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]

This topic is closed to new replies.

Advertisement