comp.lang.ada
 help / color / mirror / Atom feed
From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: win32ada design question/problem
Date: 1998/11/17
Date: 1998-11-17T00:00:00+00:00	[thread overview]
Message-ID: <F2L2r5.9IA.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 72shhh$8cg$1@nnrp1.dejanews.com

dennison@telepath.com wrote:

: ...
: I'm trying to write some portable bindings to the Zlib compression library
: right now, and have found myself reverting to just that. But are there
: portability issues associated with System.Address? My reading of 13.7 is that
: System.Address does not nessecarily map to a C pointer, and that
: System.Null_Address does not nessecarily map to a C null pointer.

: The "portable" alternative we are given is Interfaces.C.Pointers. But its a
: real pain to use for routines where the input object could be any type.

I would not worry about the portability of System.Address.
Theoretically it might be a problem, but practically,
I doubt very much whether you will run into any problems
on hosts and targets you care about.

System.Null_Address is perhaps slightly more likely to cause
portability problems, though still I suspect you are in the
0.01% case.  You could always define your own "C_Null" in some
common target-specific package, with the 99.99% reusable
default definition of System.Null_Address.

: --
: T.E.D.

--
-Tucker Taft   stt@inmet.com   http://www.inmet.com/~stt/
Intermetrics, Inc.  Burlington, MA  USA
An AverStar Company




  parent reply	other threads:[~1998-11-17  0:00 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-13  0:00 win32ada design question/problem Mats Weber
1998-11-13  0:00 ` Tom Moran
1998-11-16  0:00   ` Mats Weber
1998-11-18  0:00     ` Tom Moran
1998-11-18  0:00       ` dennison
1998-11-19  0:00       ` Mats Weber
1998-11-19  0:00         ` dennison
1998-11-19  0:00           ` David Botton
1998-11-19  0:00         ` David Botton
1998-11-19  0:00           ` Mats Weber
1998-11-23  0:00             ` Marin David Condic
1998-11-19  0:00       ` Mats Weber
1998-11-27  0:00     ` Roga Danar
1998-11-13  0:00 ` dennison
1998-11-16  0:00   ` Stephen Leake
1998-11-16  0:00     ` Tucker Taft
1998-11-17  0:00     ` dennison
1998-11-17  0:00       ` Mats Weber
1998-11-17  0:00         ` dennison
1998-11-17  0:00           ` Mats Weber
1998-11-17  0:00           ` Tucker Taft [this message]
1998-11-18  0:00             ` Tom Moran
1998-11-18  0:00               ` dennison
  -- strict thread matches above, loose matches on Subject: below --
1998-11-19  0:00 tmoran
1998-11-19  0:00 ` dennison
1998-11-19  0:00   ` Tom Moran
1998-11-20  0:00     ` dennison
1998-11-20  0:00       ` Tom Moran
1998-11-23  0:00     ` Marin David Condic
1998-11-23  0:00       ` Mats Weber
1998-11-24  0:00         ` dennison
replies disabled

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