comp.lang.ada
 help / color / mirror / Atom feed
* Intermediate expressions and modular types
@ 1997-10-18  0:00 Martin Kristensson
  1997-10-18  0:00 ` Robert A Duff
  0 siblings, 1 reply; 2+ messages in thread
From: Martin Kristensson @ 1997-10-18  0:00 UTC (permalink / raw)



-- Ada95
type Modular is mod 2**32;
procedure Test(ModA, ModB : in Modular) is
   X : Integer;
begin
   X := Integer(ModA - ModB);
end Test;

The intermediate expression (ModA - ModB) is calculated modulo 2**32 by
compiler A, but not by compiler B.
Which is right?

Surely the correct behavior must be stated in the RM, but where?

Thanks for your help,
/Martin.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-10-18  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-18  0:00 Intermediate expressions and modular types Martin Kristensson
1997-10-18  0:00 ` Robert A Duff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox