Vote UpVote

Delphi: ^TNodeData incompatible with PNodeData – {$T+} versus {$T-}

The Wiert Corner – In my Turbo Pascal days, I was fan of the {$T+} directive (now a.k.a TypedAddress on) as it would make the @ operator return typed pointers and the compiler would be more strict in forcing checks on pointer types to be compatible. Not so much in Delphi any more, see the below comment on in a G+ thread on Delphi pointer type compatibility [WayBack] by David Millington from Embarcadero. Basically we’re stuck with {$T-} which is a double edged sword: on the one hand it forces you to ensure your typed pointers are always the same actual type (so you need to define a type like PNodeData once ...
Favorite? Off-Topic? jpluimers @ 2017-11-14 12:04


Visits: 4277
Votes: 0
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)