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

Compile Bug on use of void?

Started by
2 comments, last by SharkBait 19 years, 3 months ago
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
Advertisement
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.

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

Glad I could help :)
tIDE Tile Map Editorhttp://tide.codeplex.com

This topic is closed to new replies.

Advertisement