Recent

Author Topic: [SOLVED] Including not used units in a project  (Read 339 times)

egsuh

  • Hero Member
  • *****
  • Posts: 1468
[SOLVED] Including not used units in a project
« on: October 31, 2024, 06:54:25 am »
In my applications, some units are shared by several projects while others are used in only one project. So, I'd like to make one project which contains all units. Some units will never be used. This is to check consistency of syntax --- for example, when I change one part of shared units then all other units that use those shared units must compile together. Or when I change definition of interface, I must follow up all units that use the interface.

Any problem with this idea?
« Last Edit: November 01, 2024, 07:11:06 am by egsuh »

Thaddy

  • Hero Member
  • *****
  • Posts: 15933
  • Censorship about opinions does not belong here.
Re: Including not used units in a project
« Reply #1 on: October 31, 2024, 09:14:30 am »
Not as such, but consider putting them in a package: I have my libraries often in a package and recompile that when needed.
If I smell bad code it usually is bad code and that includes my own code.

wp

  • Hero Member
  • *****
  • Posts: 12405
Re: Including not used units in a project
« Reply #2 on: October 31, 2024, 10:10:05 am »
If you don't have too many projects you could create a project group ("Project" > "New project group") and add all these projects to it ("Add" > "Add from file"). You can also add packages. A project group allows to compille all contained projects/packages by means of a single click (Select the project group node and click "Compile" or "Compile clean"). This way you easily get notified when a project/package/unit does not compile and needs to be updated.

egsuh

  • Hero Member
  • *****
  • Posts: 1468
Re: Including not used units in a project
« Reply #3 on: November 01, 2024, 07:10:51 am »
Quote
could create a project group

Wow. This is excellent. I should have studied a little more.  Thanks very much.

 

TinyPortal © 2005-2018