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=3.2 required=5.0 tests=BAYES_20,CTE_8BIT_MISMATCH, FREEMAIL_FROM,HELO_NO_DOMAIN,MAILING_LIST_MULTI, PP_MIME_FAKE_ASCII_TEXT,RDNS_NONE,REPLYTO_WITHOUT_TO_CC, SPOOFED_FREEMAIL_NO_RDNS autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,c999596f866f316a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-10 10:21:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!opentransit.net!wanadoo.fr!freenix!enst!enst.fr!not-for-mail From: "Gautier direct_replies_not_read" Newsgroups: comp.lang.ada Subject: Re: with and use Date: Wed, 10 Jul 2002 17:20:00 +0000 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: avanie.enst.fr 1026321663 46472 137.194.161.2 (10 Jul 2002 17:21:03 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 10 Jul 2002 17:21:03 +0000 (UTC) Return-Path: X-Originating-IP: [217.162.107.168] X-OriginalArrivalTime: 10 Jul 2002 17:20:01.0222 (UTC) FILETIME=[05E7D660:01C22836] Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:26991 Date: 2002-07-10T17:20:00+00:00 > > "with" and only appear at the top of a unit. Where can "use" appear? >At any place a declaration can appear, and like any declaration, its >effects extends from where it is declared to the corresponding >"end". In addition, it can also appear in a context clause. Maybe these examples could help to understand the "why". (1) with GL, GLU, GLUT, GLOBE_3D, Game_control, Level_Manager; procedure GloDemo1 is ... -- Here I don't want to open visibility ... procedure Display is use GL, GLOBE_3D; -- <-- Here but just here I want to open -- visibility of the full GL bindings begin -- No need of "GL." Clear( COLOR_BUFFER_BIT or DEPTH_BUFFER_BIT ); PushMatrix; Translate ( -eye(0), -eye(1), -eye(2) ); Rotate( rot(0), 1.0, 0.0, 0.0 ); Rotate( rot(1), 0.0, 1.0, 0.0 ); Rotate( rot(2), 0.0, 0.0, 1.0 ); ... PopMatrix; GL.Flush; GLUT.SwapBuffers; end Display; ... (2) with Ada.Text_IO; use Ada.Text_IO; procedure xxx(f:File_Type) is begin null; end xxx; (3) with Ada.Text_IO; procedure xxx(f:Ada.Text_IO.File_Type) is begin null; end xxx; ____________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm#Ada NB: For a direct answer, address on the Web site! _________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com