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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,707e18bffca9c9cd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.88.199 with SMTP id bi7mr1916912pab.17.1344343950193; Tue, 07 Aug 2012 05:52:30 -0700 (PDT) Path: g9ni5010127pbo.0!nntp.google.com!border1.nntp.dca.giganews.com!backlog1.nntp.dca.giganews.com!backlog1.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: question on using `with` without `use` and visibility of operators such as '*' Date: Mon, 30 Jul 2012 08:33:09 +0200 Organization: cbb software GmbH Message-ID: References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 9A8bJrx4NhDLcSmbrb6AdA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Original-Bytes: 1570 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-07-30T08:33:09+02:00 List-Id: On Mon, 30 Jul 2012 01:04:34 -0500, Nasser M. Abbasi wrote: > I prefer to use the long name of a package when I call some of its > functions. [...] > i.e. I really want to just write > > x * y Which is in a clear contradiction to what you stated first. "*" is a name of a function. > where x,y are variables with types defined in the package, and not write > > x package_foo("*") y Package_Foo."*" (X, Y) > This is annoying. There is a restricted form of use which brings up only operations of a type: use type Package_Foo.Float_Type; X, Y : Package_Foo.Float_Type; begin ... X * Y ... -- This is OK now -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de