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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4da4573d129f824a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-09 09:22:20 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "amado.alves" Newsgroups: comp.lang.ada Subject: RE: style Q: type .. is new String; Date: Fri, 9 Jan 2004 17:17:58 -0000 Organization: Cuivre, Argent, Or Message-ID: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: melchior.cuivre.fr.eu.org 1073668705 5816 80.67.180.195 (9 Jan 2004 17:18:25 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Fri, 9 Jan 2004 17:18:25 +0000 (UTC) To: Return-Path: X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: style Q: type .. is new String; Thread-Index: AcPWzfWnWtD/Fj3+SBqM63vtPf3SXQABS3mp X-OriginalArrivalTime: 09 Jan 2004 17:17:58.0726 (UTC) FILETIME=[87436E60:01C3D6D4] X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.3 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:4261 Date: 2004-01-09T17:17:58+00:00 >>Though I create new types regularly for numeric variables, I've only >>rarely used other than the standard String type. That saves doing = type >>conversions, but it would be nice to have strong type checking help me >>detect errors. Do other folks use new String types a lot and find it >>works out well? >No. But my reason is different. I use Bounded_String a lot... Me too. And I also use Unbounded_String a lot because it has the = wonderful feature of memory magic (no memory associated with a US object = is lost upon assignment or scope exit). (Shameless publicity: I'll = expound this memory magic approach to container design in Ada-Europe = 2004 in the half day tutorial "No Pointers, Great Programs". See you = there ;-)