🎉 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!

Property setter compile problem

Started by
10 comments, last by WitchLord 7 years, 11 months ago

This looks like intended behavior. After a quick test, it appears that the language allows you to use if (this.test != nTest), which, I think, is less ambiguous than just test anyway, making it clearer that you're using a property accessor but not being explicit about it.

Yes, I checked and if (this.test != nTest) works as expected.

Looks like property access in ObjectiveC and is much more clean than get_test().

Thank you!

Advertisement

I'll look into this behaviour. At the very least to add an explanation about it in the manual. If possible I'll make improvements to the compiler to either allow the access, or give a better error message.

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

This topic is closed to new replies.

Advertisement