Re: [fpc-pascal] Why isn’t SizeOf() allowed in generic arrays?

2012-03-29 Thread J.-c. Chu
esult in the above code. So please report this as a bug. -- Best Regards, J.-c. Chu ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Why isn’t SizeOf() allowed in generic arrays?

2012-03-29 Thread J.-c. Chu
type TBytesOverlay = 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 lim

[fpc-pascal] Why isn’t SizeOf() allowed in generic arrays?

2012-03-29 Thread 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? -- Best Regards, J.-c. Chu ___ fpc-pascal

Re: [fpc-pascal] Generics Compile Error, 2.4.2 vs 2.6.0

2012-02-13 Thread J.-c. Chu
const Item:_TStore); > > > == > > Thanks for any help. > > > > > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- Best Regar

Re: [fpc-pascal] Advanced Records - Why not available by default?

2012-01-15 Thread J.-c. Chu
The attached file does not compile in my trunk-version compiler. On January 16, 2012, Sven Barth wrote: > On 15.01.2012 16:55, J.-c. Chu wrote: >> class abstract? >> >> On January 15, 2012, Marco van de Voort wrote: >>> Which ones aren't? >> &g

Re: [fpc-pascal] Advanced Records - Why not available by default?

2012-01-15 Thread J.-c. Chu
class abstract? On January 15, 2012, Marco van de Voort wrote: > Which ones aren't? -- Best Regards, J.-c. Chu ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Advanced Records - Why not available by default?

2012-01-15 Thread J.-c. Chu
imal manner more and more. > > Some may say: You don't have to use it. That's true. But I am also no > longer able to read > foreign code (i.e. Lazarus program code) because all these strange > concepts are used there. > > > ___ > fpc-pascal maillist - fpc

Re: [fpc-pascal] Advanced Records - Why not available by default?

2012-01-14 Thread J.-c. Chu
lot of things seems a big redundancy. > > The possibility of "class var"s specially surprised me ? For What > purpose that could be good for ? > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepa