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.1 required=5.0 tests=BAYES_00,CTE_8BIT_MISMATCH, FREEMAIL_FROM,MAILING_LIST_MULTI,PP_MIME_FAKE_ASCII_TEXT autolearn=no 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 07:38: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: Hambut Frumblefoot Newsgroups: comp.lang.ada Subject: Re: Problem with Enumaration and visibility Date: Wed, 14 Nov 2001 07:37:17 -0800 (PST) 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; charset=us-ascii X-Trace: avanie.enst.fr 1005752303 42117 137.194.161.2 (14 Nov 2001 15:38:22 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 14 Nov 2001 15:38:22 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: 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:16508 Date: 2001-11-14T07:37:17-08:00 -- if I add �use Setup;� in the Start procedure it -- works. Why do I have to do this? Is there a -- different way without using use. I�m just asking to - understand how this works with enumarated types This error is to do with the visibility of 'free' functions (i.e. functions that are declared implicitly on definition of a type), e.g. '=', '/=' etc. These functions have the same visibility rules as other sub-programs declared in a package. These rule apply regardless of the type of the type (if you see what I mean). Ways of avoiding 'use'*: 1. 'use type package.typename' 2. function '=' renames examiner.'=' Hope this helps, Hambut * Don't try and type these in as they probably won't work - I haven't checked the syntax. Hopefully they'll give a pointer. __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com