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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5e54ec0ce937978 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!t-online.de!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: String literals and wide_string literals - how? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1177063665.093083.241580@e65g2000hsc.googlegroups.com> Date: Fri, 20 Apr 2007 22:48:39 +0200 Message-ID: NNTP-Posting-Date: 20 Apr 2007 22:47:28 CEST NNTP-Posting-Host: 6aa154bd.newsspool4.arcor-online.net X-Trace: DXC=bHVL4IO440<]E=H1Q9`7874IUKN`;WD7<`o6;lh[6Mg6Zje; X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:15176 Date: 2007-04-20T22:47:28+02:00 List-Id: On Fri, 20 Apr 2007 14:16:11 -0500, Randy Brukardt wrote: > "Robert A Duff" wrote in message > news:wccbqhjw0we.fsf@shell01.TheWorld.com... > ... >> String literals are not necessarily of type String; they can be of any >> "string type". A string type is any one-dimensional array of some >> character type. You can even do weird things like this: >> >> type Bit is ('0', '1'); > > That's not that weird. My favorite example of this came from an early Ada 83 > book: > > type Roman_Digit is ('I', 'V', 'X', 'L', 'C', 'D', 'M'); What about a DNA-sequences? type Nucleotide is ('A', 'C', 'G', 'T'); type DNA_Sequence is array (Positive range <>) of Nucleotide; -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de