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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38b27bed88e97415 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-20 01:00:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn14feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Question: Combination of Access and Constraining References: <1d13e1b4.0302200006.70207b86@posting.google.com> X-Newsreader: Tom's custom newsreader Message-ID: <4P05a.187861$be.178144@rwcrnsc53> NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc53 1045731648 12.234.13.56 (Thu, 20 Feb 2003 09:00:48 GMT) NNTP-Posting-Date: Thu, 20 Feb 2003 09:00:48 GMT Organization: AT&T Broadband Date: Thu, 20 Feb 2003 09:00:48 GMT Xref: archiver1.google.com comp.lang.ada:34258 Date: 2003-02-20T09:00:48+00:00 List-Id: > type TpCon is new Tp(1..1); > > expected type: Tp_Access defined at ... > found type TpCon defined at ... Ada is serious about types. Try Arr : aliased Tp := (1 .. 1 =>True); I presume there's a good reason you go to all this trouble with access types, instead of just saying function Fn (Arg : Tp) return Natural; Arr : Tp(1 .. 1); begin Arr(1) := True; Res := Fn (Arr);