Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!inesc!unl!om!px From: px@unl.fctunl.rccn.pt (Joaquim Baptista (pxQuim)) Newsgroups: comp.lang.pascal Subject: Re: Pascal compilers for MS DOS systems Message-ID: Date: 11 Jul 89 14:49:37 GMT References: <1723@hudson.acc.virginia.edu> Sender: px@unl.fctunl.rccn.pt Organization: Universidade Nova de Lisboa, Portugal Lines: 23 In-reply-to: maine@elxsi.dfrf.nasa.gov's message of 10 Jul 89 20:35:25 GMT Posting-Front-End: GNU Emacs 18.44.13 of Wed Jun 24 1987 on om (berkeley-unix) In article maine@elxsi.dfrf.nasa.gov (Richard Maine) writes, replying to article <1723@hudson.acc.virginia.edu> by hd7q@hudson.acc.virginia.edu (das himadri): > The solution is to declare the structure in the interface portion of > one of the units and have the other unit "use" the first one. Then > the second unit will inherit the type declaration of the first one > instead of having its own incompatable type. As a matter of style, I prefer to declare a third unit which contains only declarations and is imported by the units who need them. This conforms with the principle of the "Abstract data types" and usually makes the interactions among the units clearer. -- -------- Joaquim Manuel Soares Baptista | BITNET/Internet: px@fctunl.rccn.pt Centro de Inteligencia Artificial | UUCP: px@unl.uucp Uninova | ARPA: px%fctunl.rccn.pt@mitvma.mit.edu Fac. de Ciencias e Tecnologia/UNL | PSI/VMS: PSI%(+2680)005010310::PX 2825 Monte de Caparica | Fax: (+351) (1) 295 4461 PORTUGAL | Sound: (+351) (1) 295 4464 ext. 1360