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,967a201c4428b348 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-01 18:46:56 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news.lightlink.com!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Enumeration representation Date: 01 Jan 2004 21:46:56 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: pip1-5.std.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1073011616 503 192.74.137.185 (2 Jan 2004 02:46:56 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 2 Jan 2004 02:46:56 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:4031 Date: 2004-01-01T21:46:56-05:00 List-Id: "Luke A. Guest" writes: > Am I correct in saying that enumerations don't necessarily begin at zero? > Is this implementation dependent? RM-13.4(8) *requires* the internal codes to be 0, 1, 2... if no representation clause is given. So there's never a need to say "for Enum_Type use (0, 1, 2, 3);" -- that's the default. It is not implementation dependent. And of course the position numbers always start at 0, no matter what the representation is. - Bob