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,74b958f114ec4924 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Type convertion References: <47d6ae9b$1@news.broadpark.no> In-Reply-To: <47d6ae9b$1@news.broadpark.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1205257143 12.201.97.213 (Tue, 11 Mar 2008 17:39:03 GMT) NNTP-Posting-Date: Tue, 11 Mar 2008 17:39:03 GMT Organization: AT&T ASP.att.net Date: Tue, 11 Mar 2008 17:39:03 GMT Xref: g2news1.google.com comp.lang.ada:20300 Date: 2008-03-11T17:39:03+00:00 List-Id: news.broadpark.no wrote: > > - Is it possible to covert a Boolean to Integer in an easy way > - Is it possible to covert an enum to Integer in an easy way Take a look at the 'Pos attribute, and its inverse, 'Val. -- Jeff Carter "C's solution to this [variable-sized array parameters] has real problems, and people who are complaining about safety definitely have a point." Dennis Ritchie 25