• Advertisement
Sign in to follow this  

asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE + asEP_ALLOW_IMPLICIT_HANDLE_TYPES

This topic is 545 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
Sign in to follow this  

  • Advertisement