<p>Am 10.11.2016 04:30 schrieb "African Wild Dog" <<a href="mailto:paintedlycaon@gmail.com">paintedlycaon@gmail.com</a>>:<br>
><br>
> 2016-11-07 14:15 GMT-02:00 Sven Barth <<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>>:<br>
>><br>
>> Am 07.11.2016 15:58 schrieb "African Wild Dog" <<a href="mailto:paintedlycaon@gmail.com">paintedlycaon@gmail.com</a>>:<br>
>> > It is intended to change such compiler behavior in the future? It is incompatible with Delphi and moreover it force us to break the encapsulation of the Generic types.<br>
>><br>
>> I can't answer this without you providing an example that fails.<br>
><br>
><br>
> Sorry for the noise. Some of my classes were bad designed. They look like this sample (Delphi XE 6 compiles):<br>
><br>
> ==== CODE BEGIN ====<br>
><br>
> unit sample;<br>
><br>
> {$MODE delphi}<br>
><br>
> interface<br>
><br>
> type<br>
>   TGenericRecord<T> = record<br>
>   strict private<br>
>     Interf: IInterface;<br>
>     type<br>
>       TMockIntfObject<T> = record // Nested generic declaration<br>
>       end;<br>
><br>
>   public<br>
>     FValue: T;<br>
>     procedure SetValue(Value: T);<br>
>   end;<br>
><br>
> implementation<br>
><br>
> { TGenericRecord<T> }<br>
><br>
> procedure TGenericRecord<T>.SetValue(Value: T);<br>
> begin<br>
>   Interf := TMockIntfObject.Create;<br>
> end;<br>
><br>
> end. <br>
><br>
><br>
> ==== END ====<br>
><br>
><br>
>  With fpc i got the error "Fatal: Declation of generic class inside another generic class is not allowed".</p>
<p>Nested generics are currently indeed not supported. They are on my ToDo list however.</p>
<p>Regards,<br>
Sven</p>