🎉 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!
some suggestion about switch-case statement
In the current angelscript, the swith-case doesn't support hex.
for example:
switch(n)
{
case 0x10: break;
case 0x20: break;
}
it will raise some error when compiling.
I need to change the codes to
switch(n)
{
case int(0x10): break;
case int(0x20): break;
}
which is a little ugly, but it work.
Does the swith-case statement will support hex in the furture?
Thanks a lot.
It should support hex numbers as well. I'll fix this as soon as I can. Thanks for letting me know.
I made some tests and it turns out that I've already fixed this for version 2.8.0 by removing the bits type (substituted by uint).
You can get the 2.8.0 version from the SVN. Revision 98 is in a good shape, without any known problems.
Regards,
Andreas
You can get the 2.8.0 version from the SVN. Revision 98 is in a good shape, without any known problems.
Regards,
Andreas
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement