3
votes
Vote UpVote

Another case against FreeAndNil

The Wiert Corner – I started this post as “A case against FreeAndNil” but soon found out about [WayBack/Archive.is] A case against FreeAndNil – Community Blogs – Embarcadero Community. Recently I was refactoring a bunch of code that was classed based to become interface based. The old code had a lot of references to classes like this: FMyField: TMyClass; The compiler had detected those as compiler errors so now they were like this: FMyField: TMyInterface; But the compiler would still happily compile code (for instance in destructors) containing: FreeAndNil(FMyField); The only way that ...
Favorite? Off-Topic? jpluimers @ 2017-12-21 06:05

Statistics

Visits: 11414
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Ph. B.
Ravaut123
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

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