• Advertisement

Archived

This topic is now archived and is closed to further replies.

smaller issues

This topic is 5042 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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??

Share this post


Link to post
Share on other sites
Advertisement
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]

Share this post


Link to post
Share on other sites

  • Advertisement