Path: news.daimi.aau.dk!glad From: Benny Amorsen Newsgroups: comp.lang.beta Subject: Re: Fragment system Date: 13 Jun 1996 13:57:21 +0200 Organization: DAIMI, Computer Science Dept. at Aarhus University Lines: 61 Message-ID: References: NNTP-Posting-Host: peseta.daimi.aau.dk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Gnus v5.2.5/XEmacs 19.13 >>>>> "JC" == Joern Heideman Christiansen writes: [..] JC> A : (# bRef : ^B; ... #) JC> B : (# aRef : ^A; ... #) [..] JC> In A's file: INCLUDE 'bFile'; JC> In B's file: INCLUDE 'aFile'; JC> which can't be done.... JC> The only solution I have managed to find so far is to include both JC> classes in the same file, which is not desirable in this case. --------------- start: ORIGIN '~beta/basiclib/current/betaenv'; INCLUDE 'a'; --program: Descriptor -- (# C: ^A; D: ^B #) a: ORIGIN '~beta/basiclib/current/betaenv'; BODY 'abody'; --lib: Attributes -- A: (# private: @<> #); abody: ORIGIN 'a'; INCLUDE 'b'; -- Aprivate: Descriptor -- (# Bref: ^B #) b: ORIGIN '~beta/basiclib/current/betaenv'; BODY 'bbody'; --lib: Attributes -- B: (# private: @<> #); bbody: ORIGIN 'b'; INCLUDE 'a'; -- Bprivate: Descriptor -- (# Bref: ^A #) --------------- Det her kan compile... Det er ikke sikkert det er en løsning til dit problem, men jeg har oplevet, at det gør den slags problemer mindre. Altså flyt den gensidige afhængighed ud i implementationsfiler, så den enes implementation afhænger af den andens interface. Det er ikke perfekt, men det hjælper. Benny -- Finger for PGP Public Key WWW: Benny's homepage