[fpc-devel] sub byte arrays

José Mejuto joshyfun at gmail.com
Tue Jul 20 12:49:14 CEST 2010


Hello theo,

Tuesday, July 20, 2010, 12:03:28 PM, you wrote:

t> Now I was trying if something like this would work:
t> TTest=(one,two,three,four);
t> TTestarray = {bitpacked} array [1..100000] of ttest;
t> PTestarray = ^TTestarray;
[...]
t> It seems, to work, but it even works with commented "bitpacked".
t> Shouldn't this fail? How can I test this? I have all checks on which
t> Lazarus IDE offers, but it's still happy.
>>From what I understand, this would need 400 bytes in this scenario (not
t> bitpacked), isn't it?

Had you tried SizeOf(TTestarray) ?

-- 
Best regards,
 José




More information about the fpc-devel mailing list