From: Anh Vo <anhvofrcaus@gmail.com>
Subject: Re: Ada.Containers warnings with gnat
Date: Mon, 17 Nov 2014 08:39:57 -0800 (PST)
Date: 2014-11-17T08:39:57-08:00 [thread overview]
Message-ID: <e9c977ab-3ab6-4b3e-81b7-960b6b9ea609@googlegroups.com> (raw)
In-Reply-To: <m4cak8$d27$1@dont-email.me>
On Monday, November 17, 2014 12:12:05 AM UTC-8, björn lundin wrote:
> On 2014-11-16 18:32, Jeffrey Carter wrote:
> > On 11/16/2014 04:37 AM, Björn Lundin wrote:
> >>
> >> It seems to be ok until I - in the body - do
> >>
> >> with Ada.Streams;
> >
> > Delete this one and see what happens. It shouldn't change anything since
> >
> >> with Ada.Streams.Stream_IO;
> >
> > includes it.
> >
> Spot on. No warnings anymore.
> Thanks.
>
> But since the with-clause is in the body,
> one would think that the warnings would refer to the body, not the spec...
>
> I actually with'ed Ada.Streams for symmetry reason,
>
> with Ada;
> with Ada.Streams;
> with Ada.Streams.Stream_IO;
>
> looks better (to me) than just
>
> with Ada.Streams.Stream_IO;
>
> It seems that I will need some cognitive training to change my preferences.
Yes, you should since it means more with less :-)
Anh Vo.
next prev parent reply other threads:[~2014-11-17 16:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-15 14:35 Ada.Containers warnings with gnat Björn Lundin
2014-11-15 15:15 ` Björn Lundin
2014-11-15 18:01 ` Jeffrey Carter
2014-11-16 10:05 ` Björn Lundin
2014-11-16 11:37 ` Björn Lundin
2014-11-16 17:32 ` Jeffrey Carter
2014-11-17 8:13 ` Björn Lundin
2014-11-17 16:39 ` Anh Vo [this message]
2014-11-17 17:27 ` Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox