   FYI: asFUNCTION() w\ template arguments on GCC
  Just thought you'd like to know WitchLord, in the manual on this page:http://www.angelcode.com/angelscript/sdk/docs/manual/index.htmlYou show using a templated function to do reference casting, but on MinGW/GCC 4.1.2 it produces a compile time error:    r = engine->RegisterGlobalBehaviour(asBEHAVE_IMPLICIT_REF_CAST, "Base@ f( Child@ )", asFUNCTION(refCastNoRelease<Child,Base>), asCALL_CDECL); assert( r >= 0 );Quote:error: macro "asFUNCTION" passed 2 arguments, but takes just 1Although it is easily fixed by surounding the macro argument with parens:    r = engine->RegisterGlobalBehaviour(asBEHAVE_IMPLICIT_REF_CAST, "Base@ f( Child@ )", asFUNCTION((refCastNoRelease<Child,Base>)), asCALL_CDECL); assert( r >= 0 );
  Thanks. I'll make sure to update the manual.   