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,27af4b26a20589ec X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: with'ing a "foreign" package or subsystem Date: 1999/03/01 Message-ID: <7be97p$hbe$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 449956030 References: X-Http-Proxy: 1.0 x1.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: Mon Mar 01 14:46:20 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-03-01T00:00:00+00:00 List-Id: In article , Matthew Heaney wrote: > Suppose my company and another company are collaborating on building a > large software system written in Ada. We each go off and separately > build the subsystems we're responsible for, and then come together some > time later for system integration. > > During development, I needed a stack, and I implemented the following ... > But come integration time, the other company (call them ACME) had also > written package Stacks, but with a different interface, and they're > using their version of Stacks everywhere. > > Can both packages coexist in the same application? Is there a way to > give a package a "virtual" subsystem, to prevent name-space conflicts > like this? Something like: > For some reason, the above reminds me very strongly of the intro to "The Odd Couple". :-) > package ACME.Stacks renames ; > > I seem to recall reading something like this in the Ada95 Rationale, but > don't know if any vendor has actually provided such a mechanism. The only options I can see are to either rename one (or both) packages and all references to them, or to rename *every* package to be a child of the "company" package like you suggest above. Personally, I'd go for the first (or try to unify them). But I'm sure you knew about both of those options. T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own