[fpc-pascal] TPersistent overhead
Ryan Joseph
ryan at thealchemistguild.com
Mon Mar 28 03:49:40 CEST 2016
Good idea thanks.
> On Mar 27, 2016, at 5:00 PM, fpc-pascal-request at lists.freepascal.org wrote:
>
> Depending on your needs, you don't need to descend from TPersistent just
> to get RTTI information in your classes. Simply wrap a TObject
> descendant with {$M+} and deactivate the RTTI after the class definition.
>
> For example:
>
> {$M+}
> TtiVisited = class(TObject)
> ... define your class interface here...
> end;
> {$M-}
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list