From: "bob" <bklungle@junque.com>
Subject: Re: Fixed point multiplication ambiguity
Date: 1999/01/14
Date: 1999-01-14T11:54:13-06:00 [thread overview]
Message-ID: <01be404b$74c75d20$0e2915c0@w95> (raw)
In-Reply-To: 369E14CA.90715966@lmco.com
Marc,
For what it is worth, I cant answer the LRM interpretation, haven't
researched it yet. Maybe Hoos, or one of the others. But changing the 10.0
to integer 10 matches the "*" definition in package standard (gnat). It
then works. See following.
procedure Tf is
D : Duration := 5.0;
Dec_Delt : Integer := Integer(D * 10 + 0.5);
begin
null;
end Tf;
linux:~/atest> ada tf.adb
gcc -c -g tf.adb
gnatbind -x tf.ali
gnatlink -g tf.ali
cheers...bob
Marc A. Criley <marc.a.criley@lmco.com> wrote in article
<369E14CA.90715966@lmco.com>...
> The following test program is compilable by Rational Apex, but
> GNAT rejects it with:
>
> tf.adb:5:38: type cannot be determined from context
> tf.adb:5:38: explicit conversion to result type required
>
> I've studied the LRM 4.5.5(13-20), but who has the correct
> interpretation doesn't quite jump out at me, though I am
> leaning towards one over the other.
> --------------------
>
> procedure Tf is
>
> D : Duration := 5.0;
>
> Dec_Delt : Integer := Integer (D * 10.0 + 0.5);
>
> begin
> null;
> end Tf;
>
> -----------------------
> Marc A. Criley
> Chief Software Architect
> Lockheed Martin M&DS
> (610) 354-7861
>
next prev parent reply other threads:[~1999-01-14 0:00 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-14 0:00 Fixed point multiplication ambiguity Marc A. Criley
1999-01-14 0:00 ` bob [this message]
1999-01-14 0:00 ` David C. Hoos, Sr.
1999-01-14 0:00 ` Matthew Heaney
1999-01-14 0:00 ` Tom Moran
1999-01-14 0:00 ` Tucker Taft
1999-01-15 0:00 ` robert_dewar
1999-01-28 0:00 ` Nick Roberts
1999-01-28 0:00 ` robert_dewar
1999-01-28 0:00 ` Tucker Taft
1999-01-28 0:00 ` robert_dewar
1999-01-29 0:00 ` Nick Roberts
1999-01-29 0:00 ` Tucker Taft
1999-01-29 0:00 ` Nick Roberts
1999-01-29 0:00 ` Tucker Taft
1999-02-01 0:00 ` Robert I. Eachus
1999-02-02 0:00 ` Building a compiler (was: Fixed point multiplication ambiguity) Nick Roberts
1999-02-03 0:00 ` dennison
1999-02-03 0:00 ` Chris Morgan
1999-02-04 0:00 ` robert_dewar
1999-02-04 0:00 ` Garbage collection - was " news.oxy.com
1999-02-04 0:00 ` robert_dewar
1999-02-05 0:00 ` Tom Moran
1999-02-05 0:00 ` David Botton
1999-02-18 0:00 ` news.oxy.com
1999-02-18 0:00 ` AdaHag
1999-02-18 0:00 ` David Botton
1999-02-18 0:00 ` dewar
1999-02-18 0:00 ` Garbage collection - was Re: Building a compiler Samuel Mize
1999-02-19 0:00 ` Samuel Mize
1999-02-19 0:00 ` Garbage collection - was Re: Building a compiler (was: Fixed point multiplication ambiguity) Steven Hovater
1999-02-20 0:00 ` A Modest Defense of ACT (though they are big boys and can take care of themselves) Steve Quinlan
1999-02-21 0:00 ` dewar
1999-02-22 0:00 ` Matthew Heaney
1999-02-21 0:00 ` bill
1999-02-22 0:00 ` Larry Kilgallen
1999-02-22 0:00 ` dennison
1999-02-22 0:00 ` dennison
1999-02-24 0:00 ` Steve Quinlan
1999-02-25 0:00 ` dewar
1999-02-25 0:00 ` Steve Quinlan
1999-02-25 0:00 ` robert_dewar
1999-02-25 0:00 ` dennison
1999-02-26 0:00 ` Steve Quinlan
1999-02-26 0:00 ` dennison
1999-02-27 0:00 ` Simon Wright
1999-02-27 0:00 ` Dave Taylor
1999-02-28 0:00 ` dewar
1999-02-05 0:00 ` GC+HC for GNAT/GCC (was: Building a compiler) Nick Roberts
[not found] ` <m33e4jvs1n.fsf@muc.de>
1999-02-06 0:00 ` GC+FSD for GNAT/GCC Nick Roberts
1999-02-07 0:00 ` robert_dewar
1999-02-05 0:00 ` Building a compiler Nick Roberts
1999-02-05 0:00 ` Tucker Taft
1999-02-06 0:00 ` Nick Roberts
1999-01-30 0:00 ` Fixed point multiplication ambiguity robert_dewar
1999-02-02 0:00 ` Building a compiler (was: Fixed point multiplication ambiguity) Nick Roberts
1999-02-03 0:00 ` Tucker Taft
1999-02-03 0:00 ` robert_dewar
1999-01-14 0:00 ` Fixed point multiplication ambiguity Robert I. Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox