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,ae9506fd4dcf7090 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-23 01:58:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Concatenation and Characters Date: Wed, 23 Oct 2002 10:58:44 +0200 Message-ID: References: <44hp9.807$_u6.205@nwrddc01.gnilink.net> <3DA5AE5F.3030902@attbi.com> <3DB03EF1.EE771923@mmm.com> <3DB43EB0.AAF4B38C@mmm.com> <3DB44B9C.80007@worldnet.att.net> <3DB466CB.7CE0BC59@mmm.com> <3DB4C9C4.1070003@worldnet.att.net> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: fu-berlin.de 1035363525 29453531 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:30061 Date: 2002-10-23T10:58:44+02:00 List-Id: On Tue, 22 Oct 2002 16:13:43 GMT, Robert A Duff wrote: >Fraser Wilson writes: > >> "David C. Hoos" writes: >> >> > You can just write >> > return Array_Type (1 ..0); > >Ummm. No, you can't, actually. "Array_Type (1 ..0)" is not an >expression, it's a subtype_mark. > >However, you can write this: > > return (1..0 => 123); > >if the component type is Integer, say. This is annoying, because you >have to invent a completely junk value -- 123 is never used. BTW, do you know a solution of this problem for generics? Let the array element is a generic parameter and there is no Null_Element parameter, where to get a junk value? --- Regards, Dmitry Kazakov www.dmitry-kazakov.de