[fpc-pascal] Typecasting by accident

Jonas Maebe jonas.maebe at elis.ugent.be
Mon May 15 18:27:55 CEST 2006

On 15 mei 2006, at 18:09, Flávio Etrusco wrote:

>> It's a CAST dude! Exception_Message is being case as Not_Now. That  
>> should
>> work fairly well in most dialects.t
> No. Typecasts, as any other aspect of a language, has to have rules.
> AFAIR this cast in Delphi would require another cast from AnsiString
> to Pointer.

It doesn't.

> And if typed pointers is enabled would require another
> cast from Pointer to TObject.

No. {$t+} only influences implicit pointer conversions.


More information about the fpc-pascal mailing list