comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: A suggestion about interfacing with C
Date: Mon, 02 May 2016 19:46:33 +0100
Date: 2016-05-02T19:46:33+01:00	[thread overview]
Message-ID: <lyy47sl2ly.fsf@pushface.org> (raw)
In-Reply-To: 45cb9b19-b470-4649-843a-7b9f88411e6e@googlegroups.com

mockturtle <framefritti@gmail.com> writes:

> I was wandering about the best way to implement the Ada "view" of the
> pointer to nl_sock.

I think you should implement it as a pointer, because you need to make
sure the size is right; here (OS X), a pointer is 64-bits, whereas an
integer is 32-bits.

But noone else needs to know!

   type Nl_Sock (<>) is private;
   --  the constraint means that users can't create uninitialized
   --  instances

private

   type Nl_Sock is access all Integer;


  reply	other threads:[~2016-05-02 18:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-02 16:45 A suggestion about interfacing with C mockturtle
2016-05-02 18:46 ` Simon Wright [this message]
2016-05-02 19:07 ` Jeffrey R. Carter
2016-05-02 19:40 ` Per Sandberg
2016-05-02 20:14 ` Maciej Sobczak
2016-05-03 21:53 ` mockturtle
replies disabled

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