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

@ with handle properies doesn't work

Started by
1 comment, last by WitchLord 9 years, 4 months ago

Hello.

I have the following property:


SceneObject @object {
	get {
		return object_;
	}
}

When I do a check like this:


if (@object != null) {}

it issues a warning: "The operand is implicitly converted to handle in order to compare them" like if I didn't put @ before the property. If i use a temporary variable, no warning is shown. If I use get_object() explicitly, no warning is shown too. Using "!is" is fine, but I'm curious about this construct. Am I missing something?

I am using Angelscript 2.29.2

Advertisement

Looks like a minor bug in 2.29.2. I'll see if it is still present in 2.30.0 WIP.

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

The bug was still present in 2.30.0 WIP. I've fixed it now in revision 2132.

Thanks,

Andreas

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