compiler construction - Prevent implicit import of units in Delphi packages -


is there way prevent packages in delphi implicitly import units not listed in "contains" list? i'm looking compiler directive makes build fail if tries implicit import.

problems occur when install package ide implicitly imports unit , try install package contains unit , ide tells cannot install package because unit contained in first package if shouldn't be!

if you're on version of delphi that's older 2009, can make warning cause error using ddevextensions (it's free). once install it, go tools > ddevextensions - options , in "compiler enhancements" section select "active" check box , "treat warnings errors". can add warnings want not treated errors in memo below that. unfortunately, in case, looks want 1 warning treated error, you'll have add pretty every warning except 1 implicit importing list, although it's coding practice resolve compiler warnings anyways, might want have warnings cause errors.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -