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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6cb2525ffbfe23ce X-Google-Attributes: gid103376,public From: mike@eexz Subject: Ada multiple string personalities. why so many? Date: 1999/02/19 Message-ID: <7akgld$5ue@drn.newsguy.com>#1/1 X-Deja-AN: 446187083 References: <36C5B28C.F32C43A4@jps.net> <7acj53$1vu@news3.newsguy.com> <7af68r$52o$1@platane.wanadoo.fr> <7ahq7p$s6k$1@nnrp1.dejanews.com> <7ak471$rt9$1@nnrp1.dejanews.com> <7akabo$1uk$1@nnrp1.dejanews.com> Organization: Newsguy News Service [http://www.newsguy.com] Newsgroups: comp.lang.ada Date: 1999-02-19T00:00:00+00:00 List-Id: In article <7akabo$1uk$1@nnrp1.dejanews.com>, robert_dewar@my-dejanews.com says... >If it was named simply String, that would create a nasty >clash with the type in Standard, and would be much >less convenient, because then we would write >Ada.Strings.Unbounded.String, which is still a mouthful! > Why did Ada had to have 3 types for a string? the standard string, the bounded string, and the unbounded string. In C++, there is only one header that defines one string container template thing that holds character things. just one. So, a C++ string is like that of Ada's ada.strings.unbounded.string. That is all what is really needed, no?. It might not be the most efficient, but it seems better to have one general type that does eveything that 3 different types one can do a litle more with. Mike