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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4ee5611d3fbf05b7 X-Google-Attributes: gid103376,public From: je@bton.ac.uk (John English) Subject: Re: Enumeration literal visibility and use type Date: 1998/05/26 Message-ID: <6ken2q$660@saturn.brighton.ac.uk>#1/1 X-Deja-AN: 356743900 References: <6kej65$dnh$1@hermes.seas.smu.edu> <6kejt5$75u@gcsin3.geccs.gecm.com> <6kelnr$ief$1@polo.advicom.net> Distribution: world Organization: University of Brighton Newsgroups: comp.lang.ada Date: 1998-05-26T00:00:00+00:00 List-Id: David C. Hoos, Sr. (david.c.hoos.sr@ada95.com) wrote: : John McCabe wrote in message <6kejt5$75u@gcsin3.geccs.gecm.com>... : John is correct. The only way I've found to make the literals visible : (without : a context clause "use doodah;") is in the units requiring visibility is to : declare: : state_0 : constant doodah.state_value_type := doodah.state_0; : . : . : . : state_etc : constant doodah.state_value_type := doodah.state_etc; : Anyone have a better way? Dunno about "better", but I can do "different"... ;-) function state_0 return doodah.state_value_type renames doodah.state_0; -- etc. etc. (but of course I'd use Capitalised_Identifiers :-) ----------------------------------------------------------------- John English | mailto:je@brighton.ac.uk Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk -----------------------------------------------------------------