comp.lang.ada
 help / color / mirror / Atom feed
From: "Sergey Koshcheyev" <serko84@hotmail.com>
Subject: Re: Streams Quandry in Ada95
Date: Thu, 14 Dec 2000 22:43:26 +0100
Date: 2000-12-14T22:43:26+01:00	[thread overview]
Message-ID: <91betj$21bu$1@ns.felk.cvut.cz> (raw)
In-Reply-To: 91ad7r$ic6$1@nnrp1.deja.com

Hi,

I was the first person to choose the word "confused", so probably I shall
reply to this too. Basically, I meant "intentionally confused", since Ada
compilers are required not to be too smart by the Ada standard. A C/C++
compiler in a similar situation (package name/type name conflict) would
probably understand that the programmer meant the type, since a package name
isn't allowed in that context.

Obligatory note: I'm not saying that C/C++ is better, only that the
compilers have to be smarter :-)

Of course, GNAT wasn't really confused in this situation, in fact the error
message contained a reference to the declaration of the conflicting package.

Sergey

"Robert Dewar" <robert_dewar@my-deja.com> wrote in message
news:91ad7r$ic6$1@nnrp1.deja.com...
> In article <3A37D5BC.982E3BDF@home.com>,
>   "Warren W. Gay VE3WWG" <ve3wwg@home.com> wrote:
> > So my problems were probably due to the compiler
> > getting confused in different
> > contexts about what I was trying to do.
>
> I don't see that your compiler was doing anything
> wrong here at all or getting "confused". Perhaps
> you might have been confused by the results of
> injudicious choice of conflicting names, but I
> don't see any basis for claiming that the compiler
> was confused here.
>
>
> Sent via Deja.com
> http://www.deja.com/





  parent reply	other threads:[~2000-12-14 21:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3A370548.B8AF2579@home.com>
2000-12-13 16:27 ` Streams Quandry in Ada95 Stephen Leake
2000-12-13 17:39   ` Warren W. Gay VE3WWG
2000-12-13 18:49     ` tmoran
2000-12-13 20:04       ` Warren W. Gay VE3WWG
2000-12-14  2:35         ` Streams Quandry in Ada95 (SOLVED) Warren W. Gay VE3WWG
2000-12-14 12:08         ` Streams Quandry in Ada95 Robert Dewar
2000-12-14 14:19           ` Warren W. Gay VE3WWG
2000-12-14 21:43           ` Sergey Koshcheyev [this message]
2000-12-13 18:58     ` Anders Gidenstam
replies disabled

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