3
votes

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 ...
Statistics
|
Visits by Source |
User Actions |