asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE + asEP_ALLOW_IMPLICIT_HANDLE_TYPES

Started by
1 comment, last by cvet 7 years, 6 months ago

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?

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).

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Sorry, I forgot set asOBJ_IMPLICIT_HANDLE to ref types.

I'll report about results after some tests.

This topic is closed to new replies.

Advertisement