Advertisement

@ with handle properies doesn't work

Started by February 10, 2015 06:55 AM
1 comment, last by WitchLord 9 years, 9 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

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

Advertisement

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