From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b57f84f15b8a93fb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-14 16:39:00 PST Path: supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!news-FFM2.ecrc.net!news.cesnet.cz!news.felk.cvut.cz!not-for-mail From: "Sergey Koshcheyev" Newsgroups: comp.lang.ada Subject: Re: Streams Quandry in Ada95 Date: Thu, 14 Dec 2000 22:43:26 +0100 Organization: Czech Technical University Message-ID: <91betj$21bu$1@ns.felk.cvut.cz> References: <3A37B3C3.86CFCF66@home.com> <3A37D5BC.982E3BDF@home.com> <91ad7r$ic6$1@nnrp1.deja.com> NNTP-Posting-Host: b143.dkm.cz X-Trace: ns.felk.cvut.cz 976830195 66942 62.24.66.143 (14 Dec 2000 21:43:15 GMT) X-Complaints-To: usenet@ns.felk.cvut.cz NNTP-Posting-Date: Thu, 14 Dec 2000 21:43:15 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: supernews.google.com comp.lang.ada:3149 Date: 2000-12-14T22:43:26+01:00 List-Id: 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" wrote in message news:91ad7r$ic6$1@nnrp1.deja.com... > In article <3A37D5BC.982E3BDF@home.com>, > "Warren W. Gay VE3WWG" 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/