From: cjh@petsd.UUCP (Chris Henrich)
Subject: Re: Generics: 'Retraction' and an example
Date: 7 Sep 88 21:50:55 GMT [thread overview]
Message-ID: <1327@petsd.UUCP> (raw)
In-Reply-To: 8809061331.AA11160@mitre-bedford.ARPA
In article <8809061331.AA11160@mitre-bedford.ARPA> emery@MITRE-BEDFORD.ARPA.UUCP writes:
>
>However, here's an example of something that I can do on Verdix that
>DEC and (some) other compilers do not like. I believe this is legal Ada.
I believe so too, and Concurrent Computer Corporation's compiler
seems to handle it correctly.
>
>package A is
>
> generic
> package B is
> function foo return integer;
> end B;
>
>end A;
>
>package body A is
> x : integer;
>
> package body B is separate;
>
> package my_b is new b;
> -- some compilers don't like this instantiation
> -- DEC (VMS 1.3-24) and Tartan (Sun 2.0) are two that don't
> -- Verdix (Sun 5.5j) compiles this just fine.
>begin
> x := my_b.foo;
>end A;
>
>separate (A)
>package body B is
> function foo return integer is
> begin
> return 42; -- life, the universe, and everything...
> end foo;
>end B;
>
> dave emery
> emery@mitre-bedford.arpa
Regards,
Chris
UUCP: ...!rutgers!petsd!cjh
Concurrent Computer Corporation is a Perkin-Elmer company.
prev parent reply other threads:[~1988-09-07 21:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1988-09-06 13:31 Generics: 'Retraction' and an example Emery
1988-09-07 21:50 ` Chris Henrich [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox