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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a02:4d:: with SMTP id 74-v6mr3709724jaa.15.1530636172812; Tue, 03 Jul 2018 09:42:52 -0700 (PDT) X-Received: by 2002:aca:4787:: with SMTP id u129-v6mr3049490oia.4.1530636172554; Tue, 03 Jul 2018 09:42:52 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!u78-v6no798436itb.0!news-out.google.com!z3-v6ni982iti.0!nntp.google.com!u78-v6no798433itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 3 Jul 2018 09:42:52 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5 References: <70c11a71-3832-4f57-8127-f3f1c48a052f@googlegroups.com> <62e38ee4-f72f-4ed8-bef1-952040fb7f8d@googlegroups.com> <64d8b4a1-a92c-4b90-b95c-e821749de969@googlegroups.com> <887212304.552080112.848502.laguest-archeia.com@nntp.aioe.org> <87muvan83x.fsf@adaheads.home> <1449870001.552246132.581310.laguest-archeia.com@nntp.aioe.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1ce9b9c8-b9cb-4ff4-b4c7-fe4827fea15b@googlegroups.com> Subject: Re: Strange crash on custom iterator From: Lucretia Injection-Date: Tue, 03 Jul 2018 16:42:52 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:53542 Date: 2018-07-03T09:42:52-07:00 List-Id: On Tuesday, 3 July 2018 17:36:12 UTC+1, Dmitry A. Kazakov wrote: > Without having types related, we get a geometric explosion of packages:= =20 > character type x encoding method x fixed/bounded/unbounded. Clearly=20 > nobody would ever add UTF-8 into this mess, because this will double the= =20 > number of packages where strings are used. Static polymorphism=20 > (generics/overloading) does not work here. Well, they kind of already did that by subtyping UTF_String from String, of= which it's not a subtype, it's just they are both arrays of 8-bit entities= . Am i wrong, should I just implement what I need on top of the standard lib = and just use the UTF* types in my code? What about unbounded_utf_strings? J= ust use the normal unbounded_string? It's not like it's going to be checkin= g for it to be correct utf8 is it, but I can't write an iterator for that f= rom outside the rts though.