The widely used and a simple thing like exception handling is often done in a wrong way. There are documentation about try/finally and try/except statements of
Author: Pascal.Today
Hide the routine from Delphi auto-complete
There is a little trick for hiding the routine from the Delphi autocomplete: type TTest = class public procedure &&DoThat; end; procedure TTest.&&DoThat; begin end;
Casting to record types and use of absolute
Everyone knows the possibility to cast the types explicitly in Delphi. Often we cast the Integer to Pointer, TObject or one class to another class
Forcing the linker to include your class
To force the linker to include your class into executable (often needed for RTTI) you can just write single line in the unit initialization to
Finding used but unimplemented interfaces
When reusing the implementation and interfaces between different tools/projects some of us face the problem getting run-time error about some interface implementation not found. It can
Finding duplicate GUIDs in interfaces
Sometimes when you are creating the architecture and defining the interfaces you can slick down to a copy-paste for a simple files (when you now it