1.I experienced that when a functions ends on "};" instead od "}"
you get an unexpected token msg
2.as doesn''t support unsigned short right??
3.The token which is unexpected could be displayed in the errmsg too??
1. Yes, you would get an unexpected token. The alone ';' token will not be part of the function and will form its own statement, an empty statement. In the global scope AngelScript doesn't recognize empty statements as it doesn't make sense anyway. Only declarations are allowed in the global scope.
2. AS supports unsigned short using uint16, or bits16 if you want to use it as a bitvector.
3. It can, I've just been lazy and not implemented it. I'll include it in the next version.
__________________________________________________________ www.AngelCode.com - game development and more... AngelScript - free scripting library
[edited by - WitchLord on April 2, 2004 8:15:41 AM]