Original Post
I have a type registered as asOBJ_REF|asOBJ_SCOPED and I would like to return it from an operator add, etc. I need it scoped because it requires special alignment upon allocation, but does not support reference counting, nor should it. I can't return it by value because it is a reference type. I can't return it by handle (@) because it doesn't support handles. Returning it by reference (&) lets it compile, but the memory is leaked since I have to allocate a new instance of the type in the operator add. Any ideas of how to handle my situation? (I emailed Andreas, but I know he's really busy right now, so just in case someone on the board knows the answer)