Hi. I was wondering if I could get a little clarification on exactly what the difference between registering a function with & vs @?
Ie:
scriptEngine->RegisterObjectMethod("class", "void function(sometype &)", asMETHOD(class,function), asCALL_THISCALL);
scriptEngine->RegisterObjectMethod("class", "void function(sometype @)", asMETHOD(class,function), asCALL_THISCALL);
Just from messing around, It seems @ increments the object ref count for you while & does not (is that correct?) But @ works on types that don't have ref counting behavior too. Can you use @in or @out? or is @ always inout?
Should I be using & or @ in general? Or does that depend on if its a value or reference type?