From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4f071b0868ee342f X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: Design Question: How Best To Structure Cross-Referencing Types In Ada 95 Date: 1999/01/21 Message-ID: <787dsd$ig3$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 435209810 References: <36A68FCA.E1EEAFFE@hiwaay.net> X-Http-Proxy: 1.0 x15.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Jan 21 14:33:50 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-01-21T00:00:00+00:00 List-Id: In article <36A68FCA.E1EEAFFE@hiwaay.net>, aeg@hiwaay.net, glover@thaad.tecmasters.com wrote: > In Ada83 I have something that looks like: > > package XYZ is ... > type Part is > record > Parent_Car : Car; > end record; > type Car is > record > Part1 : Part; > Part2 : Part; > end record; > end XYZ; > Not too much like this I hope. Elaboration of this would involve infinite mutual recursion! I think its safe to assume that at least one of these (probably Parent_Car) is actually a *pointer* to the other. > behave like this and I end up with one large package. I would rather > have the > types split into different packages, but I would get circular > dependencies when > compiling the specs. > > Is there a neat Ada95 way of getting around this cross-referencing > problem? Not that I know of. I thought I heard somewhere that gnat may be able to handle two specs withing each other. That may solve part of your problem. T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own