From: Simon Wright <simon@pushface.org>
Subject: Re: Interfacing enums with C
Date: Sun, 17 Aug 2014 20:39:01 +0100
Date: 2014-08-17T20:39:01+01:00 [thread overview]
Message-ID: <lylhqmkisq.fsf@pushface.org> (raw)
In-Reply-To: lsqu8i$uco$1@speranza.aioe.org
Victor Porton <porton@narod.ru> writes:
> type Option_Type is (A, B);
> for Option_Type'Size use Interfaces.C.unsigned'Size;
> for Option_Type use (A=>1, B=>2);
What's wrong with
type Option_Type is (A, B)
with Convention => C;
for Option_Type use (A => 1, B => 2);
And your first interfacing convention is much better. IMO.
next prev parent reply other threads:[~2014-08-17 19:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-17 19:02 Interfacing enums with C Victor Porton
2014-08-17 19:39 ` Simon Wright [this message]
2014-08-17 19:46 ` Victor Porton
2014-08-17 19:48 ` Victor Porton
2014-08-17 22:48 ` Peter Chapin
2014-08-18 9:19 ` Simon Wright
2014-08-18 9:17 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox