comp.lang.ada
 help / color / mirror / Atom feed
From: Mark Lorenzen <mark.lorenzen@ofir.dk>
Subject: Re: Converting access values
Date: 06 Jan 2005 00:51:19 +0100
Date: 2005-01-06T00:51:19+01:00	[thread overview]
Message-ID: <m3652bwi2w.fsf@0x535ba1f6.boanxx18.adsl-dhcp.tele.dk> (raw)
In-Reply-To: mailman.33.1104968090.527.comp.lang.ada@ada-france.org

Stephen Leake <stephen_leake@acm.org> writes:

> Mark Lorenzen <mark.lorenzen@ofir.dk> writes:
> 
> > The problem is simply
> > that my buffer has type access-to-unconstrained-array type and my copy
> > has an access-to-constrained-array type.
> 
> Why? Why not use the right type?

The example is a part of a package where I "export" the type
Buffer_Ptr in the public part of the package specification. The
access-to-unconstrained-array is local to the Copy function as it is
defined in the instantiation from Ada.Address_To_Access_Conversions.

> 
> > Question: How do i convert an access-to-constraint-array type to
> > access-to-unconstrained-array type in a (more or less) portable way?
> 
> By copying the data :). I don't think there is a portable way to do that.

Shame.

> 
> -- 
> -- Stephe

- Mark Lorenzen



  reply	other threads:[~2005-01-05 23:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-05 22:31 Converting access values Mark Lorenzen
2005-01-05 23:32 ` Stephen Leake
2005-01-05 23:51   ` Mark Lorenzen [this message]
2005-01-06  0:18 ` Jeffrey Carter
2005-01-06  0:28   ` Mark Lorenzen
2005-01-07 16:55     ` Nick Roberts
2005-01-07 19:49       ` Mark Lorenzen
2005-01-07 20:23         ` Nick Roberts
2005-01-07 21:23           ` Robert A Duff
2005-01-11 17:02             ` Upkeep
2005-01-11 21:37               ` Robert A Duff
2005-01-12  4:56                 ` Alexander E. Kopilovich
2005-01-12 10:48                 ` Dmitry A. Kazakov
2005-01-07 21:17         ` Randy Brukardt
2005-01-07 22:15           ` Robert A Duff
2005-01-06 10:52 ` Dmitry A. Kazakov
2005-01-06 11:02 ` Duncan Sands
2005-01-06 12:17   ` Martin Dowie
2005-01-06 19:30   ` Mark Lorenzen
2005-01-06 20:40     ` Randy Brukardt
replies disabled

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