From: Mats Weber <Mats.Weber@elca-matrix.ch>
Subject: Re: help with pointerproblem.
Date: 1998/09/11
Date: 1998-09-11T00:00:00+00:00 [thread overview]
Message-ID: <35F91FB9.A07A0CF9@elca-matrix.ch> (raw)
In-Reply-To: 6ta4lf$e0b1@onews.collins.rockwell.com
Wayne Magor wrote:
> Since VertexArray is unconstrained, there will have to be a descriptor
> someplace. It's likely the pointer points to the descriptor instead
> of the data. I'd prefer to take the 'address of element zero of the
> array. Seems to me that's more likely to work across nearly all
> platforms. Like this:
>
> return GLPointer (ToGlPointerPackage.To_Pointer (vPtr(0)'Address));
This (taking the address of the first element instead of the address of the
array) is a hack that is not necessary anymore with Ada 95, because the RM now
says it has to be the same.
return GLPointer (ToGlPointerPackage.To_Pointer (vPtr'Address));
is just fine.
next prev parent reply other threads:[~1998-09-11 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-10 0:00 help with pointerproblem Roger Carlsson
1998-09-10 0:00 ` Steve Doiel
1998-09-11 0:00 ` Wayne Magor
1998-09-11 0:00 ` Mats Weber [this message]
1998-09-12 0:00 ` dewarr
1998-09-17 0:00 ` Matthew Heaney
1998-09-11 0:00 ` Mats Weber
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox