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,54dd2d5232c1184f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-06 14:04:08 PST Message-ID: <3F088EB8.F6068010@somewhere.nil> Date: Sun, 06 Jul 2003 23:03:52 +0200 From: Gautier Write-only X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: C++ enumerations the Ada way References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 80.218.93.77 X-Trace: news.swissonline.ch 1057525448 80.218.93.77 (6 Jul 2003 23:04:08 +0200) X-Complaints-To: abuse@swissonline.ch Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!news.mailgate.org!news-zh.switch.ch!switch.ch!news.swissonline.ch!not-for-mail Xref: archiver1.google.com comp.lang.ada:40091 Date: 2003-07-06T23:03:52+02:00 List-Id: Mark: > Several references to the Ada way of doing/using enumerations and how > to do something similar in C++. It might even make a few people look > into Ada. Good thing. Curiously the author showed a complicated "Ada way": for c in currency'first..currency'last loop instead of for c in currency loop ! (feedback sent to him). ________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!