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: 103376,cea502f7b2820a37 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!skynet.be!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Enumeration literals and their associated functions Date: Thu, 20 Oct 2005 20:26:45 +0100 Organization: Pushface Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1129836402 2088 62.49.19.209 (20 Oct 2005 19:26:42 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 20 Oct 2005 19:26:42 +0000 (UTC) Cancel-Lock: sha1:sSuJq/fnLsvS57XVR0/LB/+StLY= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:5830 Date: 2005-10-20T20:26:45+01:00 List-Id: "Frank J. Lhota" writes: > Basically, the only use of the function notation for enumeration > literals is in renaming declarations. I'm not sure whether you would regard it as different .. but you can use an enumeration literal to satisfy a generic formal: generic with function Control return Boolean; package Foo is package Bar is new Foo (Control => True);