Marco van de Voort schreef:
On 18 Jul 2008, at 18:26, Craig Peterson wrote:
Why would that be better than a simple typecast? Typecasting to/ from an object is a fast and easy way to associate an integer or enum with the strings in a TStrings object.
Note that this will break if you turn on class type checking (-CR). In other words, you cannot use class type checking to check/debug programs that use this trick.

Hmm, can't you turn that off locally?

Is there {$ObjectCheck OFF} ?

Vincent
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to