2017-04-09 5:18 GMT+02:00 Ryan Joseph <r...@thealchemistguild.com>: > Is there anyway to make constants work in generics?
sure, but not directly. Try this: === code begin === {$MODE DELPHI} type TA = record public const L = 16; end; TB<T, L> = record public type FData = array[0..L.L] of T; end; var X: TB<Integer, TA>; === code end === -- Best regards, Maciej Izak
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal