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,45f3a057fa7b1dfe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-26 07:22:50 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: slice'access? Date: 26 May 2002 07:22:50 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0205260622.4f222b0d@posting.google.com> References: <3CEFF1FB.A7DE9298@acm.org> <_gVH8.619$9J7.68226356@newssvr14.news.prodigy.com> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1022422970 14311 127.0.0.1 (26 May 2002 14:22:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 26 May 2002 14:22:50 GMT Xref: archiver1.google.com comp.lang.ada:24831 Date: 2002-05-26T14:22:50+00:00 List-Id: tmoran@acm.org wrote in message news:<_gVH8.619$9J7.68226356@newssvr14.news.prodigy.com>... > > Slice : aliased String := S (X .. Y); > > Ptr : String_Pointer; > > begin > > Ptr := Slice'[Unchecked_]Access; > But that's a pointer to a string, not a slice. The > string is > initialized by copying, which is what I'm trying to > avoid. And that is obviously impossible (except by using unrestricted_access in GNAT, and there you have to be careful about the scope of the created bounds template.