On Tue, Feb 16, 2010 at 1:55 PM, Alister Christie
<alis...@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
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: 
unsubscribe

Reply via email to