comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Type convertion
Date: Tue, 11 Mar 2008 22:40:32 +0100
Date: 2008-03-11T22:40:32+01:00	[thread overview]
Message-ID: <874pbdszvz.fsf@ludovic-brenta.org> (raw)
In-Reply-To: 47d6f0e0@news.broadpark.no

"news.broadpark.no" <etjensen@broadpark.no> writes:

> "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org> wrote in message
> news:XszBj.71283$yE1.45295@attbi_s21...
>> 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.
>>
>
> Works fine. Thank you!

I don't think this is the best solution.  You don't really want to
"convert to an int"; you want to "interface with C".  The solution I
gave earlier expresses that more cleanly.

-- 
Ludovic Brenta.




  reply	other threads:[~2008-03-11 21:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-11 16:10 Type convertion news.broadpark.no
2008-03-11 16:59 ` Ed Falis
2008-03-11 20:45   ` Ludovic Brenta
2008-03-12 20:36     ` Simon Wright
2008-03-12 20:45       ` Ludovic Brenta
2008-03-13  8:33         ` Maciej Sobczak
2008-03-24  2:14           ` David Thompson
2008-03-11 17:39 ` Jeffrey R. Carter
2008-03-11 20:53   ` news.broadpark.no
2008-03-11 21:40     ` Ludovic Brenta [this message]
2008-03-11 17:49 ` Stuart
2008-03-11 20:56   ` news.broadpark.no
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox