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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Substrings as argument to procedures/functions Date: Tue, 26 Apr 2016 13:41:53 -0500 Organization: JSA Research & Innovation Message-ID: References: <2055a188-fb5f-496a-ab37-b25d81cebe1b@googlegroups.com> <518c7059-14c6-4344-a251-129cca2621af@googlegroups.com> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1461696113 1436 24.196.82.226 (26 Apr 2016 18:41:53 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 26 Apr 2016 18:41:53 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:30291 Date: 2016-04-26T13:41:53-05:00 List-Id: "Georg Bauhaus" wrote in message news:nfn0mh$abh$1@dont-email.me... > On 26.04.16 00:07, Randy Brukardt wrote: >> Use of predefined types is evil, so who cares? > > Anyone coming from just about any other language, since they > have no idea that there could be such a fine thing as user defined > fundamental types! ;-) > > So, how does one introduce them to programming in Ada without using > library types but still using strings, and text I/O? Using Root_String'Class, of course. Which Ada doesn't have, unfortunately. I'd rather fix that rather than noddling with Standard types - the Wide_Wide_Unbounded_UTF8_String nonsense doesn't make sense (but maybe it's UTF8_Unbounded_Wide_Wide_String? Bah hambug.) Randy.