[DUG] Is it a bug in latest version of Delphi?
Karl Reynolds
kreynolds at chocfishsoft.co.nz
Tue Feb 16 14:24:00 NZDT 2010
On Tue, Feb 16, 2010 at 1:55 PM, Alister Christie
<alister at salespartner.co.nz> wrote:
> I think the point I was trying to make is that it is that the method
> (/array indexer or whatever) was expecting a TObject - passing anything
> else could result in unexpected results.
Only if you stipulate that you have to remain ignorant of the function
internals. The TObject is converted back and forth from a LongInt in
order to store it anyway (see GetObject and PutObject).
> The fact that -1 doesn't work
> is therefor not a bug (unless you can have 1 byte sized objects).
var x: longint;
x := -1; // Four bytes
(May the source be with you).
Cheer,
Karl
More information about the Delphi
mailing list