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!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Strange crash on custom iterator Date: Thu, 5 Jul 2018 21:41:37 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <70c11a71-3832-4f57-8127-f3f1c48a052f@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> <87efginb3c.fsf@adaheads.home> NNTP-Posting-Host: 3CrKQyqWAJZHy6zYVP/kUg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.8.3 Xref: reader02.eternal-september.org comp.lang.ada:53673 Date: 2018-07-05T21:41:37+02:00 List-Id: On 2018-07-05 20:08, Randy Brukardt wrote: > "Dmitry A. Kazakov" wrote in message > news:phj5j9$bju$1@gioia.aioe.org... >> On 2018-07-04 20:06, Shark8 wrote: >>> On Wednesday, July 4, 2018 at 11:51:20 AM UTC-6, Jacob Sparre Andersen >>> wrote: >>>> >>>> It would be nice if the encoding and character set of a string were >>>> "implementation details". I'm not sure how to do it, but I think it is >>>> worth trying to find a solution for Ada. (I think I was introduced to >>>> how the KDE library does it once, but IIRC only encoding was abstracted >>>> away.) >>> >>> Indeed so! >>> This is the way we /should/ have strings; where [[Wide_]Wide_]String are >>> all generic with things like 'character-set' and 'search' and 'encoding' >>> as formal parameters. >>> >>> Sadly this will likely never happen because it would break backwards >>> compatibility. >> >> It would break nothing. Old package will become renamings of new >> instances. Well, except for dire deforestation should new RM be ever >> printed... > > That's not possible. As you like to say, String /= String'Class. The new > libraries would almost all take String'Class (or whatever stand-in there > is). Possible, but as useless as existing implementation. I wished to say that there is no difference between overloading string types and overloading string types from generic instances. If Ada.Text_IO became renaming of Ada.Generic_Text_IO (...) the would change nothing. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de