AngelScript 2.26.3 is out

Recommended Posts

Oscar1    115

Thanks, fantastic work. The asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE is definitelly going to be set TRUE in my project

Edited by Oscar1

Share on other sites
glcolor    328

Great,thanks,I waited delegate for a long time,and I hope the @ symbol can be removed completely from the language as soon as possible,I was confused by it frequently...

Share on other sites
FDsagizi    514
i have small question, how use array sorting, with ref type ? Edited by FDsagizi

Share on other sites
WitchLord    4677

@glcolor:

I'm not sure I will remove it completely, but if I do it will only happen when I start working on AngelScript 3.0.

@FDsagizi:

You mean when you have something like:

array<obj@> arr;
arr.sort();


It's unfortunately currently not possible. Currently the CScriptArray will sort the handles by the address, rather than calling the opCmp method on the object, which is rather stupid. I don't know what I was thinking when I implemented it that way. But don't worry, I'll have it changed soon.

Share on other sites
WitchLord    4677

I changed the array yesterday to allow it to sort on arrays of handles too. The code is in revision 1641.

Share on other sites
FDsagizi    514

Surep! allways - engine->SetEngineProperty( asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE , true );

by the way if asEP_DISALLOW_VALUE_ASSIGN_FOR_REF_TYPE  == true then '@' not actual!

Thanks!