Advertisement

Funcdef error message when using delegate

Started by October 31, 2015 02:22 PM
0 comments, last by WitchLord 9 years ago

When creating a delegate with a function that does not match the funcdef's signature, the error message given does not refer to the function name, but rather to the funcdef name:


funcdef void Foo();

class Bar
{
	bool Callback()
	{
		return true;
	}
}

Bar bar;

Foo@ pCallback = Foo( bar.Callback );

This gives the following error message:

No matching signatures to 'void Foo()'

This can be rather confusing.

Thanks. I'll look into improving the error message for this scenario.

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