comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: How to supply pointer to C?
Date: 1996/08/28
Date: 1996-08-28T00:00:00+00:00	[thread overview]
Message-ID: <dewar.841212360@schonberg> (raw)
In-Reply-To: 01bb9464$de525a00$3b8371a5@dhoossr.iquest.com


David said

"This solution is a portable (i.e. Ada83/Ada95) solution, based on the
assumption that Ada's System.ADDRESS and C's pointer are the same size, and
have identical representations, and that Ada's INTEGER type and C's size_t
type are the same size, and have identical representations.  These
assumptions are usually true."

The size_t assumption is very dangerous, it will typically NOT be true
on any 64-bit machine, for example it is false in the DEC Unix
implementation of GNAT.





  reply	other threads:[~1996-08-28  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-27  0:00 How to supply pointer to C? Greg Baker
1996-08-27  0:00 ` David C. Hoos, Sr.
1996-08-28  0:00   ` Robert Dewar [this message]
1996-08-28  0:00     ` Larry Kilgallen
replies disabled

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