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,772ae8afc5db35f2 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: Can't export object of private type Date: 1999/03/01 Message-ID: <7be399$brp$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 449928420 References: <7b1k4h$13k6@news3.newsguy.com> <7b3f6v$lc1$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x3.dejanews.com:80 (Squid/1.1.22) for client 166.72.70.10 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Mar 01 13:04:47 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-03-01T00:00:00+00:00 List-Id: In article , Brian Rogoff wrote: > On Thu, 25 Feb 1999 robert_dewar@my-dejanews.com wrote: > > ... snip ... > > > > Now my own design preference would have been to avoid > > the > > separate private part, and just put a private keyword > > > on selected declarations. > > I suppose that would be equivalent to an upwardly > compatible extension of Ada which allowed interleaving of > public and private sections, like C++. Well I suppose that technically this would be a compatible extension, but I cannot imagine anything more inappropriate than having BOTH mechanisms in the same language, that would just be a confusing mess, so I am not FOR A MOMENT suggesting a change to the language here, merely musing about what might have been. And I must say, that the argument is not clear. In particular, especially if you have the ability to separate off private parts physically, e.g. into a separate file, there are tremendous advantages in having the private part be separate. For example, it is very typical that the spec proper is target dependent, but the private part needs specialization. So I am not at all sure that I am clearly in favor of my original note, quoted above, here. The issues are basically that this would simplify the semantics considerably, but there would be a real cost in abstraction capabilities. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own