[fpc-devel] generics

Daniël Mantione daniel.mantione at freepascal.org
Wed Dec 20 18:43:50 CET 2006



Op Wed, 20 Dec 2006, schreef Vincent Snijders:

> Dani=EBl Mantione schreef:
> > =

> > Op Wed, 20 Dec 2006, schreef Vincent Snijders:
> > =

> > > Will fpc support generic record declarations like this:
> > > =

> > > type
> > >  generic TFixedKeyNode<KeySize> =3D record
> > > key: array[0..KeySize-1] of char;
> > > value: dword;
> > > end;
> > > =

> > > In other word the type is not parameterized by another type but by an
> > > integer
> > > used to define the upper limit of an array.
> > =

> > Basically, isn't this similar to a schema type like you have in Extended
> > Pascal?
> =

> No idea. I have absolutely no knowledge about Extended Pascal. Can you gi=
ve a
> link which describes that?

http://www.gnu-pascal.de/gpc/Schema-Types.html

Dani=EBl


More information about the fpc-devel mailing list