comp.lang.ada
 help / color / mirror / Atom feed
From: "G.B." <bauhaus@notmyhomepage.invalid>
Subject: Re: New compiler error with new compiler
Date: Thu, 8 Dec 2022 21:30:12 +0100	[thread overview]
Message-ID: <tmthgl$ud3k$1@dont-email.me> (raw)
In-Reply-To: <cd12eaed-0b85-4d1f-a1f6-e88d40dc00bdn@googlegroups.com>

On 08.12.22 05:07, Jerry wrote:
> So the correctness of an Ada program can depend on the processor that it runs on?

The correctness of the Ada program will depend
on the correctness of its assumptions ;-)

     declare
         Freezing_Cold : constant Integer :=
           Integer'Last / 1_000;
     begin
         Put ("Water freezes at ");
         Put (Freezing_Cold, Width => 2);
         Put (" degrees Fahrenheit");
     end;


The case statement of the program shown in your message
features a technique (of the few that are available to
the C programmer) for testing properties of an implementation
of C, at compile time.

Software configuration for the target platform can remove
the need for this kind of case distinction. Source text
will be restricted to normal program logic.

  parent reply	other threads:[~2022-12-08 20:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-06 11:13 New compiler error with new compiler Jerry
2022-12-06 11:36 ` Dmitry A. Kazakov
2022-12-06 13:32   ` Simon Wright
2022-12-08  4:07     ` Jerry
2022-12-08  8:15       ` Dmitry A. Kazakov
2022-12-08 10:29       ` Jeffrey R.Carter
2022-12-08 20:30       ` G.B. [this message]
2022-12-08 20:37 ` Simon Wright
replies disabled

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