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
'auto' causes crash with anonymous functions
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
Popular Topics
Advertisement