comp.lang.ada
 help / color / mirror / Atom feed
From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: How to supply pointer to C?
Date: 1996/08/28
Date: 1996-08-28T00:00:00+00:00	[thread overview]
Message-ID: <1996Aug28.133404.1@eisner> (raw)
In-Reply-To: dewar.841212360@schonberg


In article <dewar.841212360@schonberg>, dewar@cs.nyu.edu (Robert Dewar) writes:
> 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.

It is also not true on Alpha VMS using DEC Ada and DEC C...

...but some of us want DEC to change that aspect of DEC Ada...

...reinforcing the danger of such assumptions.




      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
1996-08-28  0:00     ` Larry Kilgallen [this message]
replies disabled

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