From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: ++ of C in ada
Date: 25 Jul 2005 16:15:34 -0400
Date: 2005-07-25T16:15:34-04:00 [thread overview]
Message-ID: <wccu0iiabh5.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 1122228917.377279.262690@g47g2000cwa.googlegroups.com
"nicolas.b" <nicolas.blanpain@fr.thalesgroup.com> writes:
> How can i implement the operator ++ in ada :
>
> type T_Ptr is access all T_Item;
> How can i implement : procedure Increment (Ptr : in out T_Ptr);
You can implement such a thing using System.Storage_Elements and
System.Address_To_Access_Conversions.
Why do you want to use address arithmetic on T_Ptr?
I'm sure you'll get lots of responses saying you *don't* want to do
that, but there are some rare cases where it might be a good idea.
- Bob
next prev parent reply other threads:[~2005-07-25 20:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-24 18:15 ++ of C in ada nicolas.b
2005-07-24 18:22 ` Ludovic Brenta
2005-07-25 5:55 ` Jeffrey Carter
2005-07-25 13:18 ` Marc A. Criley
2005-07-25 17:00 ` Martin Krischik
2005-07-25 20:15 ` Robert A Duff [this message]
2005-08-02 5:32 ` 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