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-25 13:20:27 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!59ce1190!not-for-mail Message-ID: <3CEFF1FB.A7DE9298@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: slice'access? References: <5ee5b646.0205250847.2df207c9@posting.google.com> <_IQH8.461$II3.79467548@newssvr13.news.prodigy.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 25 May 2002 20:20:25 GMT NNTP-Posting-Host: 63.184.7.249 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1022358025 63.184.7.249 (Sat, 25 May 2002 13:20:25 PDT) NNTP-Posting-Date: Sat, 25 May 2002 13:20:25 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:24795 Date: 2002-05-25T20:20:25+00:00 List-Id: tmoran@acm.org wrote: > > Is there a NICE way to create an access to a slice? There's always something along the lines of declare Slice : aliased String := S (X .. Y); Ptr : String_Pointer; begin Ptr := Slice'[Unchecked_]Access; end; but I get the feeling this doesn't meet your definition of NICE. -- Jeff Carter "Oh Lord, bless this thy hand grenade, that with it thou mayst blow thine enemies to tiny bits, in thy mercy." Monty Python and the Holy Grail