The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

{$DUPLICATEENABLE ON} against name collisions in Delphi…

Posted by jpluimers on 2017/11/01

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.

PS2: via Stefan Glienke, an error message that is related to this:

---------------------------
Error
---------------------------
Cannot load package 'Package2.'  It contains unit 'Whatever', which is also contained in package 'Package1'.
---------------------------
OK
---------------------------

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.