Ada: how to solve “Circular Unit Dependency”?
问题 Suppose I have two records: Person and Animal . Each record is in a separate package. Package persons: with animals; use animals; package persons is type person is record ... animalref: animalPOINTER; ... end record; type personPOINTER is access person; end persons; Package animals: with persons; use persons; package animals is type animal is record ... ownerref: personPOINTER; ... end record; type animalPOINTER is access animal; end animals; I have Circular Unit Dependency here, and compiler