0
votes

In my main.adb, I with and use separate packages grids.adb and cells.adb. Grids package withs and uses cells, and works ok, visible. Cells withs and uses grids, but code in cells package doesn't see grids.

Where do I make code in grids visible by cells in this mutually dependent arrangement, which I may want to change later.

2

2 Answers

0
votes

From your description it looks like your problem is "circular unit dependency" and not a visibility problem. You may solve it if you add "limited with Grid" in your Cell package and do the same with your Grid package.

0
votes

It would be easier with some code but as stated by Timur, you could use a Limited with.

Moreover, you can read the wikibook on this topic