# GB.ReturnPtr

void GB.ReturnPtr ( GB_TYPE type , void * value )

Returns a value stored in memory.

type is the Gambas datatype of the value.

value is the address of the value in memory.

This function is mainly used by container classes like Array classes, Collections to return the data they stored.

The return value is automatically converted to the class specified in the method or property signature.

Be careful ! This function does not abort the method or property. You must explicitely return from it by using the `return` instruction.