Operator add,sub,multiply,divide with scoped types,
Members - Reputation: 170
Posted 09 September 2008 - 07:14 AM
Moderators - Reputation: 4334
Posted 09 September 2008 - 02:39 PM
The solution (as I mentioned in the e-mail, but repeat here for the benefit of others) is to change AngelScript to allow the application to register functions to return these scoped reference types by handle (even though within the scripts the handle of the type cannot be taken, as it is supposed to emulate value types). This will allow AngelScript to receive the value and then immediately release it after it has copied it to whatever variable the script wants to store it in.
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game