From: "Marc A. Criley" <mcNOSPAM@mckae.com>
Subject: Re: ++ of C in ada
Date: Mon, 25 Jul 2005 08:18:13 -0500
Date: 2005-07-25T08:18:13-05:00 [thread overview]
Message-ID: <4b7bc$42e4e68b$4995209$14608@ALLTEL.NET> (raw)
In-Reply-To: <1122228917.377279.262690@g47g2000cwa.googlegroups.com>
nicolas.b wrote:
> 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);
> thanks
>
See package Interfaces.C.Pointers. Section B.3.2 in the Ada LRM
(http://www.adapower.com/rm95/RM-B-3-2.html).
Think twice before going with this approach, though. Is it really
necessary, or are you just carrying through a C/C++ idiom?
-- Marc A. Criley
-- www.mckae.com
-- DTraq - XPath In Ada - XML EZ Out
next prev parent reply other threads:[~2005-07-25 13:18 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 [this message]
2005-07-25 17:00 ` Martin Krischik
2005-07-25 20:15 ` Robert A Duff
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