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

'auto' causes crash with anonymous functions

Started by
1 comment, last by WitchLord 8 years, 9 months ago
funcdef void CB();

CB @cb0 = function() {}; // ok

auto cb1=cb0; // ok

auto cb2= function() {}; // crash

auto @cb3= function() {}; // crash


error info:

Assertion failed: !invalidStackSize, file ..\..\source\as_bytecode.cpp, line 2430
Advertisement

Thanks. I'll have this fixed.

The compiler should detect and generate a proper error message informing that it is not possible to determine the signature of the anonymous function when used like this.

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

I've fixed this in revision 2221.

Regards,

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