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,34d47d048b177d0b X-Google-Attributes: gid103376,public From: mheaney@ni.net (Matthew Heaney) Subject: Re: limited/non-limited in Ada95 Date: 1997/10/18 Message-ID: #1/1 X-Deja-AN: 282348488 References: <3442C2A3.3781@bix.com> <3449390f.142507@SantaClara01.news.InterNex.Net> Organization: Estormza Software Newsgroups: comp.lang.ada Date: 1997-10-18T00:00:00+00:00 List-Id: In article <3449390f.142507@SantaClara01.news.InterNex.Net>, tmoran@bix.com (Tom Moran) wrote: >>important capabilities of limited types >The one that bit me most recently was that you can't have access >values as discriminants of non-limited types. Yeah, a pain, but will this work? type DT is ...; type DT_Access is access all DT; type T (D : DT_Access) is private; You can then use Unchecked_Access: declare D : aliased DT; O : T (D'Unchecked_Access); begin Will that do what you want? -------------------------------------------------------------------- Matthew Heaney Software Development Consultant (818) 985-1271