Vote UpVote

Delphi: do NOT use duplicate GUIDs on interfaces

The Wiert Corner – One of the things when fixing bugs in an old codebase is wading through technical debt. A quick win is to get rid of duplicate GUIDs when interface portions have been copy-paste re-used: interfaces with the same GUID are treated the same with as┬ácasts even if they are different. the compiler does not warn about duplicate GUID values** These searches help big time: it shows the duplicate GUIDs if they have been indented all the same way. Good enough for most situations. grep -Sh "\[\'{" *.pas | sort grep -rh "\[\'{" *.pas | sort It depends which flavour of grep you use (gnu or regular) to ...
Favorite? Off-Topic? jpluimers @ 2019-04-04 07:04


Visits: 164
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)