Delphi: better design to avoid circular unit reference?
问题 I have a triangular mesh structure in Delphi 10. For performance reasons I store the data of the mesh's vertices, triangle faces, etc. in descendants of TList. I let the TLists do the calculations for every member of the list. For these calculations I need access to some fields of the TMesh structure. Therefore during the creation of TMesh and subsequently the creation of the lists I assign the parent TMesh to the lists. I use a forward declaration of TMesh to do so. Please see the following