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,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cd45439466e86f24 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 26 Sep 2004 19:54:41 -0500 Reply-To: "Jack Flynn" From: "Jack Flynn" Newsgroups: comp.lang.ada References: Subject: Re: enumeration type Date: Sun, 26 Sep 2004 17:54:38 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response Message-ID: NNTP-Posting-Host: 24.126.231.144 X-Trace: sv3-gbbxP3+zOVygLYlypQw4fQAdNz9LB6i8fNRSIDSeYb+I09pLBK1J+iHOKYAFRJn+j2KR3BojH7+hjtJ!wYzCi0E/Lk8zA2VpJnFiUzCe/eCisUFJZMRRt9eXGnbYrHRMB8GpemxWz3tMPw0= X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.13 Xref: g2news1.google.com comp.lang.ada:4236 Date: 2004-09-26T17:54:38-07:00 List-Id: "Rick Santa-Cruz" wrote in message news:cj7lvp$ao3$00$1@news.t-online.com... > > I know that such doesn't work in ada, but how can I access the elements > > of > an enumeration directly with the full qualified name? your post indicates function so try something along these lines: procedure p is type fuzzy is (false,maybe,true); function "=" (f : fuzzy; b : boolean) return boolean; function "=" (f : fuzzy; b : boolean) return boolean is begin case f is when true => return b; when false => return not b; when maybe => return false;-- or use more complicated parameterized function call end case; end "="; zadeh : fuzzy := maybe; good : boolean; begin good := (zadeh = standard.false) and not (zadeh = standard.true); end p; > > Thanks in advance for your help, > Rick > >