Am 03.01.2012 14:00, schrieb Frank Fischer:
Hi,
I'm a fpc newbie and currently playing around with generic classes.
Consider the following code:
[snip]
% fpc test.pas
Free Pascal Compiler version 2.6.0 [2011/12/23] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Lin
Hi,
I'm a fpc newbie and currently playing around with generic classes.
Consider the following code:
= test.pas =
{$mode objfpc}
program Test;
type
generic TGen<_T> = class
public
type
TInner = class
procedure Func;
end;
end;
TInst = specialize TGen