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,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-30 06:47:31 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.vmunix.org!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? Date: Tue, 30 Sep 2003 15:56:21 +0200 Message-ID: <0k2jnvc2hh1ovrj6v6qqa5jh8ddotduj79@4ax.com> References: <1064527575.648809@master.nyc.kbcfp.com> <3F739C1D.4030907@attbi.com> <3F78E850.8010401@comcast.net> <3F79751F.3000709@noplace.com> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1064929649 10935788 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:16 Date: 2003-09-30T15:56:21+02:00 List-Id: On Tue, 30 Sep 2003 12:21:00 GMT, Marin David Condic wrote: >It would be nice to have unbounded string versions of all the >subprograms that use strings. Open, Create, etc., all could be >duplicated with an Unbounded_String parameter. Don't forget the >sub-packages like Integer_IO, et alia. They have string parameters as >well and I'd like to be able to use Unbounded_String everywhere. Which means that Unbounded_String has to be a subtype of String. Actually interface inheritance should have solved this (by providing user-defined type conversions). You inherit a String interface and implement it via Unbounded_String, and here you are, all instances are substitutable where a String is expected. Unfortunately, the AI goes other way. --- Regards, Dmitry Kazakov www.dmitry-kazakov.de