[fpc-devel] generics
Vincent Snijders
vsnijders at quicknet.nl
Wed Dec 20 12:23:40 CET 2006
Will fpc support generic record declarations like this:
type
generic TFixedKeyNode<KeySize> = 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.
I am thinking of trying to use generics to implement the hashtable with fixed size
keys for the k-nucleotide benchmark:
http://shootout.alioth.debian.org/gp4/benchmark.php?test=knucleotide&lang=all
Vincent
More information about the fpc-devel
mailing list