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 02:08:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: Concatenation and Characters Date: Wed, 23 Oct 2002 09:08:24 +0000 (UTC) Organization: IKS GmbH Jena 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: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1035364104 32584 217.17.192.37 (23 Oct 2002 09:08:24 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Wed, 23 Oct 2002 09:08:24 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:30062 Date: 2002-10-23T09:08:24+00:00 List-Id: * Dmitry A Kazakov wrote: >>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? There are several other cases where a default value can't be specified (task). Then I use declare empty : Array_Type (Offset_Type'Last .. Offset_Type'Pred(Offset_Type'Last)); begin return empty; end;