Re: ++ of C in ada
- From: Robert A Duff <bobduff@xxxxxxxxxxxxxxxxxxxx>
- Date: 25 Jul 2005 16:15:34 -0400
"nicolas.b" <nicolas.blanpain@xxxxxxxxxxxxxxxxxx> 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
.
- References:
- ++ of C in ada
- From: nicolas.b
- ++ of C in ada
- Prev by Date: Re: Help needed for ada package
- Next by Date: Re: Isn't this in favour of Ada??
- Previous by thread: Re: ++ of C in ada
- Next by thread: [Announce] AADL Workshop
- Index(es):
Relevant Pages
|