Compile Bug on use of void?
I think I've found a compiler bug:
When writing AngelScript functions, I have a tendency to explicitly specify that a function takes no arguments by using the "void" keyword, as in:
bool InitialiseArcadeAtomSequences(void)
{
....
}
This causes the compiler to crash with an access violation on address 0x00000008. It took me a while to figure out the problem since the AS compiler doesn't complain about the use of "void" in this manner.. it simply bombs out! Removing the "void" solves the problem.
I don't know if such use of "void" is acceptable AS syntax or otherwise, but whatever the case I think the compiler doesn't seem to handle it.
Hope the above helps, if I can help out with further info please let me know.
Regards,
tIDE Tile Map Editorhttp://tide.codeplex.com
I'll verify this a.s.a.p.
The specification doesn't support void as parameter, and the compiler should give an error message. It definitely shouldn't crash, so I'm pretty sure it really is a bug.
Thanks for reporting it.
The specification doesn't support void as parameter, and the compiler should give an error message. It definitely shouldn't crash, so I'm pretty sure it really is a bug.
Thanks for reporting it.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
Just wanted to let you know that I've fixed the bug. The fix will be in the next release.
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