It's not safe returning object arrays. You can do that, but you should know well the language.
2 ways of doing "float x[10] ---->| H(Z) | --------> float y[10] ":
--
float function( float )
{
}
int nMember;
float x[ 20 ], y[ 20 ];
for( nMember = 0; nMember < 20; ++nMember )
y[ nMember ] = function( x[ nMember ] );
-- or --
bool function( float x[], float y[], int nMaxMembers )
{
int nMember;
for( nMember = 0; nMember < nMaxMembers; ++nMember )
y[ nMember ] = compute_function( x[ nMember ] );
return( true );
}
float x[ 20 ], y[ 20 ];
function( x, y, 20 );
--
Wagner.