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!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!eu.feeder.erje.net!feeder.erje.net!us.feeder.erje.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Ambiguous expressions - Help! Date: Tue, 24 Sep 2013 16:34:35 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <9afe7143-873f-4ae9-a387-424a9f858827@googlegroups.com> <052de5da-75dc-486b-83e9-4f717d8e0ab7@googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls7.std.com 1380054875 597 192.74.137.71 (24 Sep 2013 20:34:35 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 24 Sep 2013 20:34:35 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:ZXfhAiM0hHY8j1dODtipv5TPVwE= Xref: news.eternal-september.org comp.lang.ada:17276 Date: 2013-09-24T16:34:35-04:00 List-Id: Adam Beneschan writes: > A string literal can actually be converted to any array of an > enumeration type, if the enumeration type has at least one character > literal as one of its literals. The classic example is: > > type Roman_Digit is ('I', 'V', 'X', 'L', 'C', 'D', 'M'); > type Roman_Numeral is array (Natural range <>) of Roman_Digit; > R : Roman_Numeral := "MMXIII"; Right, and it's interesting that Roman_Digit'Size = 3 bits, and the representation of 'I' is 0, 'V' is 1, ..., 'M' is 6. - Bob