From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Adding Things to Package System
Date: 1999/02/20
Date: 1999-02-20T00:00:00+00:00 [thread overview]
Message-ID: <m3btipffxn.fsf@mheaney.ni.net> (raw)
In-Reply-To: 1999Feb20.003952.9906@nosc.mil
claveman@cod.nosc.mil (Charles H. Sampson) writes:
> Package System in both the Green Hills and ObjectAda implementa-
> tions contain a declaration similar to
>
> function "+" (Left : Address, Right : Integer) return Address;
>
> as well as the commutative variation. Green Hills, which is my vendor,
> didn't tell me why they chose to ignore the advice. I have no idea why
> ObjectAda did either; they're a colleague's vendor and he doesn't have
> time to ask them right now. (He's in typical alligator-fighting mode.)
We're using the VADS compiler, and they did something _really_ dumb:
function "+" (L : Address; Right : Integer) return Address;
function "+" (L : Address; Right : Long_Integer) return Address;
So the call
Addr := Base_Addr + 16#5000#;
is ambiguous! So you have to do this
Addr := Base_Addr + Integer'(16#5000#);
next prev parent reply other threads:[~1999-02-20 0:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-18 0:00 Adding Things to Package System Charles H. Sampson
1999-02-18 0:00 ` dewar
1999-02-20 0:00 ` Charles H. Sampson
1999-02-20 0:00 ` Matthew Heaney [this message]
1999-02-21 0:00 ` dewar
1999-02-23 0:00 ` Tucker Taft
1999-02-26 0:00 ` Charles H. Sampson
1999-02-27 0:00 ` Tucker Taft
1999-02-28 0:00 ` dewar
1999-02-28 0:00 ` robert_dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox