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: bourguet@my-dejanews.com Subject: Re: Can't export object of private type Date: 1999/03/01 Message-ID: <7be2pt$bfd$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 449927352 References: <7b3f6v$lc1$1@nnrp1.dejanews.com> <7b5u87$s88$1@nnrp1.dejanews.com> <7b6f9k$at2$1@nnrp1.dejanews.com> <7bagrq$l6c$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x8.dejanews.com:80 (Squid/1.1.22) for client 158.140.208.29 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Mar 01 12:56:33 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.05 [en] (X11; I; SunOS 5.5.1 sun4u) Date: 1999-03-01T00:00:00+00:00 List-Id: In article <7bagrq$l6c$1@nnrp1.dejanews.com>, dewar@gnat.com wrote: > In article <7b6f9k$at2$1@nnrp1.dejanews.com>, > bourguet@my-dejanews.com wrote: > > Well, this is a feature I'd like, especially if the > > compilation of a unit "withing" the package can be > > compiled (and code generated) > > without the private part. More or less like inter package > > inline > > is currently handled by gnat: you have a performance gain > > if you accept > > the dependancy but you may prefer the flexibility of the > > independancy... > > well I'd even accept that all the program have to be > > compiled with the > > same mode. > > Interesting idea. Of course you cannot generate code > without the private part present (or at least not in any > reasonably efficient or practical manner). What I was thinking for the "don't use knowledge about private parts" mode of code generation would be the equivalent of: type X is private; ... private type X_Decl; type X_Access is access X_Decl; type X is new Ada.Finalization.Controlled with record Value: X_Access; end record; I know some people working in C++ who advice to always use the equivalent. Yours, -- Jean-Marc -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own