Maciej, >From your example code, the usage looks exactly like what I'd want. One question though. Would the magic code also work with var and out arguments?
That is with (note these functions are generic): procedure Foo1<T>(A: TArray<T>); procedure Foo2<T>(var A: TArray<T>); procedure Foo3<T>(out A: TArray<T>); Where each can be called with a TManagedArray<T> as the "A" argument without qualifying the Instance field? var A: TManagedArray<Integer>; begin Foo3(A); Foo2(A); Foo1(A); end;
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal