Quantcast
Channel: Delphi – The Wiert Corner – irregular stream of stuff
Viewing all articles
Browse latest Browse all 1440

{$DUPLICATEENABLE ON} against name collisions in Delphi…

$
0
0

Need to research {$DUPLICATEENABLE ON} further one day, but surely looks useful but is not really documented, not even at the Delphi 2009 documentation where it was introduced: [WayBackSysUtils.pfIgnoreDupUnits Constant.

–jeroen

Via: [WayBackMonkeyMixer has just been updated!- I’ve fixed a unit naming collision with Castlia- I’ve added an XE7 project group (which includes both the BPL and… – Simon Stuart – Google+

PS:

A cryptic G+ comment [WayBack] by Uwe Schuster:

DUPLICATEENABLE is old, but since it is something for IDE packages to avoid intersections with user/3rd party packages there is no need for a documentation. I do use it in an IDE package that did use the JCL/JVCL units as well and does another unit with a common name. IIRC I did mention it related to MonkeyMixer.

I think he argues that documentation is both not needed, but the usage of the directive sometimes is. Which somehow feels like a contradiction to me.

 


Filed under: Delphi, Delphi 2009, Delphi 2010, Development, Software Development

Viewing all articles
Browse latest Browse all 1440

Trending Articles