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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d4c7d2007b402b15 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!feeder.news-service.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder8.cambrium.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 24 Jun 2009 11:56:25 +0200 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Not visible References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4a41f849$0$31865$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 24 Jun 2009 11:56:25 CEST NNTP-Posting-Host: 64567a1a.newsspool3.arcor-online.net X-Trace: DXC=VceCZNj`_R@@Y=h<_c3PkHMcF=Q^Z^V3H4Fo<]lROoRA^YC2XCjHcbIJE\0ln_FPEI;9OJDO8_SKFNSZ1n^B98iJB2^XL]b7XGM X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:6591 Date: 2009-06-24T11:56:25+02:00 List-Id: Pietro Tornaindietro schrieb: > hi, i'm a newbie. > > i'm using APQ. > > ith APQ.PostgreSQL, APQ.PostgreSQL.Client; > with Ada.exceptions; > with Text_IO; > use Text_IO; > use Ada.exceptions; > with APQ.PostgreSQL, APQ.PostgreSQL.Client; > > procedure aa33 is > use APQ.PostgreSQL, APQ.PostgreSQL.Client; > > C : Connection_Type; > begin > Connect(C); > > exception > when Not_Connected => > > > and when i compile this code, gnat tells me " "Not_Connected" is not > visible". > > what's the problem? Where is Not_Connected declared? In case it is declared in APQ, the declarations of APQ aren't visible directly. "use P1.P2" makes the declarations of P2 directly visible, but not those of P1. In case there are two declarations of exception Not_Connected, one in APQ.PostgreSQL and one in APQ.PostgreSQL.Client (though I'd doubt it), then making both names directly visible by "use"ing both packages leads to a conflict.