Jump to content
  • Advertisement
Miss

Enum size

Recommended Posts

2 hours ago, Denis Brachet said:

It was just a ping just to know. :)

It's pings like this that shows me that there is an interest in a particular feature, and this is what guides me when prioritizing upcoming work. :)

Share this post


Link to post
Share on other sites
Advertisement

As always, thank you for your continued support of the library. :)

Share this post


Link to post
Share on other sites

enums in AngelScript are already scoped, in the sense that two different enums can have enum values of the same name. If the compiler cannot automatically determine which one to use by the expression it will report an error of multiple matching values, which the programmer can then solve by adding the enum name as scoping operator to explicitly disambiguate the values.

If you wish, you can also enforce the use to the enum name whenever an enum value is used by setting the engine property asEP_REQUIRE_ENUM_SCOPE.

            enum ENUMA { VALUE = 1 }
            enum ENUMB { VALUE = 2 }
            int a = VALUE; // fails with ambiguity
            int b = ENUMA::VALUE;  // ok
            int c = ENUMB::VALUE;  // ok

Share this post


Link to post
Share on other sites

Perfect. So the only thing missing is the size (from my point of view, of course).
I've seen your to-do list and I've also seen you prioritized the enum size feature.
Just to know, do you already have a release date in mind, in term of month/year, for the next release?

Share this post


Link to post
Share on other sites

I'm finishing up version 2.34.0, and hope to release it still this month. The next release after that will hopefully be in first half of 2020.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!