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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to