[fpc-pascal] Why isn’t SizeOf() allowed in generic arrays?
J.-c. Chu
jcchu at acm.org
Thu Mar 29 10:39:50 CEST 2012
type TBytesOverlay<T> = array [0..SizeOf(T) - 1] of Byte
On March 29, 2012, Sven Barth wrote:
> Am 29.03.2012 10:14, schrieb J.-c. Chu:
>> Hi,
>>
>> Could somebody explain why SizeOf() cannot be used in the definition of
>> generic arrays? I know this is a current limitation of Delphi, but will
>> it be possible to have this feature in Free Pascal first?
>>
>
> Can you give a concrete example what you want to achieve, please?
>
> Regards,
> Sven
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
--
Best Regards,
J.-c. Chu
More information about the fpc-pascal
mailing list