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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news2.google.com!proxad.net!news.wiretrip.org!news2.arglkargh.de!noris.net!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Enumeration literals and their associated functions Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Thu, 20 Oct 2005 18:17:13 +0200 Message-ID: <1phcc66tuyzmx$.1m0iw4cayx178$.dlg@40tude.net> NNTP-Posting-Date: 20 Oct 2005 18:17:02 MEST NNTP-Posting-Host: 5d055a18.newsread2.arcor-online.net X-Trace: DXC=P@PkCZA\:5RXNWN: On Thu, 20 Oct 2005 16:21:26 +0200, Maciej Sobczak wrote: > If instead "RED" above is considered to be a literal, then what's the > sense of having an associated function at all? Literal = function. So the following is legal: type Color is (RED, GREEN, BLUE); function Get_Red return Color renames RED; -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de