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

Funcdef error message when using delegate

Started by
0 comments, last by WitchLord 8 years, 8 months 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.

Advertisement

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