Wak 1 Posted Friday at 08:41 AM I've worked with generics quite a bit, but I have never tried to define a generic pointer type to another generic type: TMyType<T> = record ID: T; end; PMyType<T> = ^TMyType<T>; // Error: E2508 type parameters not allowed on this type TMyTypes<T> = array of TMyType<T>; // OK PMyTypes<T> = array of ^TMyType<T>; // OK TMyTypeHack<T> = record P: ^TMyType<T>; // OK end; This raises a compiler error. It seems Delphi doesn't allow type aliases like this, but allows using them in the definition of array/record types. Has anyone found a trick to achieve it? Thanks! Share this post Link to post