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-Thread: a07f3367d7,73cb216d191f0fef X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.92.202 with SMTP id co10mr115461wib.1.1363401910817; Fri, 15 Mar 2013 19:45:10 -0700 (PDT) Path: bp2ni94766wib.1!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!news.astraweb.com!border2.a.newsrouter.astraweb.com!newsfeed10.multikabel.net!multikabel.net!newsfeed20.multikabel.net!news.mi.ras.ru!goblin2!goblin.stu.neva.ru!feeder.erje.net!us.feeder.erje.net!xmission!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Is this expected behavior or not Date: Wed, 13 Mar 2013 18:12:46 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <8klywqh2pf$.1f949flc1xeia.dlg@40tude.net> <513f6e2f$0$6572$9b4e6d93@newsspool3.arcor-online.net> <513faaf7$0$6626$9b4e6d93@newsspool2.arcor-online.net> <51408e81$0$6577$9b4e6d93@newsspool3.arcor-online.net> <11rcs3gg4taww$.bylek8fsshyz$.dlg@40tude.net> <72lrnwimkypq.k20q71qpxioc$.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1363212766 12452 192.74.137.71 (13 Mar 2013 22:12:46 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 13 Mar 2013 22:12:46 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:B+/8oQxrohz1iliJs/Y7KtQ/ai4= Content-Type: text/plain; charset=us-ascii Date: 2013-03-13T18:12:46-04:00 List-Id: "Dmitry A. Kazakov" writes: > P.S. This is how Ada could finally get curly brackets (:-)): > > type Color is {Red, Green, Blue}; -- No order in public views An early version of Ada (Green?) had unordered enumeration types. I don't remember the syntax, but it didn't involve curly braces. ;-) GNAT has a pragma Ordered to mark an enumeration type as ordered, and a switch -gnatw.u that tells the compiler to complain if you use certain operations on unordered enums (unordered being the default). - Bob