comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Selective suppression of warnings --- gnat on GNU/Linux
Date: Tue, 30 Dec 2008 18:26:33 -0500
Date: 2008-12-30T18:26:33-05:00	[thread overview]
Message-ID: <wcciqp11byu.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: d99c5bcb-3d98-4e68-8a43-cd92ab255fdf@i20g2000prf.googlegroups.com

Michael Mounteney <gate02@landcroft.co.uk> writes:

> Thanks very much, Ludovic, that answer was just what I needed !  The
> warning count has decreased by about 80%.
>
> Bill:  I take your point but I am trying to preserve semantic
> information the conversion.  So I do want the types to be distinct.
> The Pascal source has been modified where necessary thus:
>
>      dest := (*ada:typeofdest*)(expr);
>
> which the convertor sees as
>
>      dest := typeofdest(expr);
>
> in order to maintain the distinction of types.

Aha!  So you're not exactly translating Pascal to Ada,
you're translating Pascal with some interesting
annotations (in Pascal comments) to Ada.

I think you might be better off annotating the Pascal
type declarations (which ones should be separate types,
in the Ada sense, versus subtypes), rather than annotating
the individual Pascal expressions with conversion annotations.

- Bob



  reply	other threads:[~2008-12-30 23:26 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-30  3:13 Selective suppression of warnings --- gnat on GNU/Linux Michael Mounteney
2008-12-30  8:03 ` Ludovic Brenta
2008-12-30 22:49   ` Michael Mounteney
2008-12-30 23:26     ` Robert A Duff [this message]
2008-12-30 11:01 ` (see below)
2008-12-30 11:37   ` Georg Bauhaus
2008-12-30 12:05     ` (see below)
2008-12-30 14:11       ` Pascal ranges (was: Selective suppression of warnings --- gnat on GNU/Linux) Georg Bauhaus
2008-12-30 20:19         ` (see below)
2008-12-30 23:19           ` Pascal ranges Robert A Duff
2008-12-30 23:34             ` (see below)
2008-12-31  0:07               ` Robert A Duff
2008-12-31  0:32                 ` (see below)
2008-12-30 23:13 ` Selective suppression of warnings --- gnat on GNU/Linux Robert A Duff
2008-12-31  9:46   ` Jean-Pierre Rosen
2008-12-31 14:55     ` Robert A Duff
2008-12-31 16:13       ` Jean-Pierre Rosen
2008-12-31 20:01         ` Robert A Duff
2008-12-31 18:43     ` (see below)
2008-12-31 19:49       ` Robert A Duff
2008-12-31 20:24         ` Jeffrey R. Carter
2008-12-31 22:38           ` Robert A Duff
2008-12-31 19:46 ` Jerry
2008-12-31 22:39   ` Robert A Duff
2008-12-31 23:37   ` Michael Mounteney
2009-01-01  9:45   ` sjw
replies disabled

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