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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,36b39757d8f8763e X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.199.73 with SMTP id ji9mr7466855pbc.5.1327401629780; Tue, 24 Jan 2012 02:40:29 -0800 (PST) Path: lh20ni218307pbb.0!nntp.google.com!news2.google.com!eweka.nl!feeder.eweka.nl!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!rz.uni-karlsruhe.de!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 24 Jan 2012 11:40:28 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Does OpenToken support Unicode References: <2652647e-ef0a-4440-b127-4ddc59620707@4g2000yqu.googlegroups.com> <82vcpgf1zl.fsf@stephe-leake.org> In-Reply-To: Message-ID: <4f1e8a9c$0$6624$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 24 Jan 2012 11:40:28 CET NNTP-Posting-Host: 2bd0e742.newsspool2.arcor-online.net X-Trace: DXC=o?00S6W8hX0TQL:hoD@>T?A9EHlD;3Yc24Fo<]lROoR18kF:Lh>_cHTX3j=IO5m8R9ZbB1 X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2012-01-24T11:40:28+01:00 List-Id: On 23.01.12 23:48, mtrenkmann wrote: > To support constants and non-generic Ada procedures one has to turn > them into formal parameters of generic OpenToken packages, right? > Maybe this could end in an generics instantiation nightmare. This let > me come to the question why in Ada are some packages prefixed with > Wide_Wide_ and not generic. (Sorry for this question, but a come from > the C++ universe.) The question (not the first time someone asks) seems quite justified by Ada, since it does have such generic standard packages, that is, packages that feature a formal of a scalar type, such as Generic_Elementary_Functions, or the traditional I/O packages. One answer is backwards compatibility business, IIRC. Guessing, it might not have felt nice to have both Character packages and generic character packages; using a 1-1 onto correspondence to replace packages with instances of packages was perhaps still considered a cause of forced modification of working systems... For today, and new systems, maybe using streams might lead to a solution that can be adapted to some abstract character type. There is some overlap between containers' subprograms and string subprograms, which might be another path.