[lazarus] FPC Request

Shane Miller SMiller1 at stvgb.org
Mon Oct 25 14:39:59 EDT 1999


Another request:

Delphi allows you to assign a Pointer variable to a TObject by doing the conversion for you, so you don't need to typecast it.
For example

Var
P: Pointer;
T: TObject;

Begin

P := T;

End;

FPC makes you typecast T as a Pointer.

Also, the other way around should work too. 

T := P;

so I don't need to typecast P as a TObject.

Could this be done?

Shane







More information about the Lazarus mailing list