Getting returned objects by value

Started by
1 comment, last by Solokiller 9 years, 4 months ago

Is it possible to get returned object by value, for example:


string GetString();

Is it possible to get the returned string object? I'm not sure if i can get this with GetReturnAddress or not.

Advertisement

GetReturnAddress() works, so does GetReturnObject(), and GetAddressOfReturnValue().

GetReturnAddress() is intended to be used for functions that return a reference or a handle (but it actually do work for functions returning objects by value too)

GetReturnObject() is intended to be used for functions that return objects, whether it is by value, reference, or handle.

GetAddressOfReturnValue() works for all return types, including primitives, objects, references, handles, etc. This method is intended to be used by template proxy functions.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Ok, thanks for explaining.

This topic is closed to new replies.

Advertisement