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,6d748e86b56b1269 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-27 07:46:29 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: wojtek@power.com.pl (Wojtek Narczynski) Newsgroups: comp.lang.ada Subject: Re: Prefix to 'ACCESS must either statically match... But why? Date: 27 Jan 2003 07:46:28 -0800 Organization: http://groups.google.com/ Message-ID: <5ad0dd8a.0301270746.6ad4c4b0@posting.google.com> References: NNTP-Posting-Host: 80.55.195.178 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1043682388 24226 127.0.0.1 (27 Jan 2003 15:46:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 27 Jan 2003 15:46:28 GMT Xref: archiver1.google.com comp.lang.ada:33456 Date: 2003-01-27T15:46:28+00:00 List-Id: Theoretically all clear, practically - major bummer. Looks like this used to work in some older version of GNAT: type String_Access is access all String; S : aliased String (1 .. 10); ... declare subtype S_Access is String_Access (S'Range); SA : S_Access := S'Access; begin (From this thread: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&frame=right &th=1de133c02ad2b2d3&seekm=m3ogiofyua.fsf%40mheaney.ni.net#link1) But now it doesn't with current (3.15p) GNAT nor current Aonix. Other variants I could think of don't work either. At present I can't come up with any idea on how to obtain a compatible access subtype. Regards, Wojtek