Jump to content
  • Advertisement
Sign in to follow this  
cvet

asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE + asEP_ALLOW_IMPLICIT_HANDLE_TYPES

This topic is 697 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

Hello, Andreas!

 

I want to use this combination of flags

asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE + asEP_ALLOW_IMPLICIT_HANDLE_TYPES

to exclude explicit handles from language syntax.

but engine is not handle all behaviors:

uint[] Get() { uint[] arr; return arr; } // Reference types cannot be returned by value from functions

void Set(uint[] arr) {} // Reference types cannot be passed by value in function parameters

 

Also in all Register* methods I must type @ in any way. Is this intend?

Edited by cvet

Share this post


Link to post
Share on other sites
Advertisement

asEP_ALLOW_IMPLICIT_HANDLE_TYPES is still experimental, and I haven't really spent time to make sure it implicit handles works in all possible scenarios.

 

I will investigate the cases you mentioned to see what can be done. 

 

Feel free to make changes to the library to make it work the way you want and then send me the code, so I can merge it into the main branch (after my own evaluation and testing, of course).

Share this post


Link to post
Share on other sites

Sorry, I forgot set asOBJ_IMPLICIT_HANDLE to ref types.

I'll report about results after some tests.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!