From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Pragma Import don't suppress access initialization
Date: Mon, 07 Oct 2002 19:49:29 GMT
Date: 2002-10-07T19:49:29+00:00 [thread overview]
Message-ID: <3DA1E543.9050908@acm.org> (raw)
In-Reply-To: uq3gsgb0qva7c9@corp.supernews.com
Matthew Heaney wrote:
> "Fr�d�ric Ormancey" <frederic.ormancey@atosorigin.com> wrote in message
> news:9c9fb8b4.0210070410.fa84429@posting.google.com...
>
>> function Analyser_Formule (Varset : in System.ADDRESS)
>> return Integer is
>> V : Ty_Varset;
>> for V use at Varset;
>> pragma Import (Ada, V);
>>
>>where Ty_Varset is declared in another package :
>>
>> type Varset(Nature : Character; Taille : Integer);
>> type Ty_Varset is access Varset;
>
> What's wrong with System.Address_To_Access_Conversions?
>
> V : Object_Pointer := To_Pointer (Varset);
Note that he is not using Varset as an access value as you are
suggesting; he is using it as the address of an access object. That may
be his problem, but we can't tell.
--
Jeff Carter
"Have you gone berserk? Can't you see that that man is a ni?"
Blazing Saddles
next prev parent reply other threads:[~2002-10-07 19:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-07 12:10 Pragma Import don't suppress access initialization Frédéric Ormancey
2002-10-07 17:25 ` Matthew Heaney
2002-10-07 19:49 ` Jeffrey Carter [this message]
2002-10-07 17:25 ` Craig Carey
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox