On Fri, Oct 31, 2014 at 12:01 AM, Kiên Nguyễn Tiến Trung <kc97...@gmail.com>
wrote:

> AFAIK, you must create a new type:
>
> type
>     TMyGenericInt = specialize TMyGeneric<Integer>;
> var
>     VMyGenericInt: TMyGenericInt;
>
> begin
>     VMyGenericInt:= TMyGenericInt.Create;
>     VMyGenericInt.Value := 2014;
>     VMyGenericInt.Free;
> end.
>

Hm... so I'll choose the mode delphi in my new projects to type less code
hehe...

Thanks guy! =)

-- 
Silvio Clécio
My public projects - github.com/silvioprog
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to