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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,83b83c553c3b79cf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-14 06:37:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: Wilhelm Spickermann Newsgroups: comp.lang.ada Subject: Re: Problem with Enumaration and visibility Date: Wed, 14 Nov 2001 14:48:47 +0100 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: avanie.enst.fr 1005748643 40338 137.194.161.2 (14 Nov 2001 14:37:23 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 14 Nov 2001 14:37:23 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: In-Reply-To: X-Mailer: Mulberry/2.1.1 (Linux/x86) Content-Disposition: inline X-Sender: 0211750756-0001@t-dialin.net Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:16500 Date: 2001-11-14T14:48:47+01:00 --On Mittwoch, November 14, 2001 13:03:19 +0000 Preben Randhol=20 wrote: ... > if Method =3D Setup.Method_Enum_Type'(Spell) then ^ ^^^^^ These are two items which are defined in Setup and need a=20 "Setup." too, if you want to avoid using "use". This leads to: ... if Setup."=3D" (Method, Setup.Method_Enum_Type'(Setup.Spell)) = then ... which can be simplified to: ... if Setup."=3D" (Method, Setup.Spell) then ... The ugly =B4Setup."=3D"=B4 can be avoided by a "use type" = clause: ... use type Setup.Method_Enum_Type; Method : Setup.Method_Enum_Type :=3D Setup.Get_Method; begin if Method =3D Setup.Spell then ... Wilhelm