comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: ++ of C in ada
Date: Mon, 25 Jul 2005 19:00:47 +0200
Date: 2005-07-25T19:00:47+02:00	[thread overview]
Message-ID: <3880306.s4FKnVCnmr@linux1.krischik.com> (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

Other allready pointed out that what you are asking it is not a good idea.
May I suggest the following readings:

http://en.wikibooks.org/wiki/Programming:Ada:Control#for_loop_on_arrays
http://en.wikibooks.org/wiki/Programming:Ada:Types:array

Martin

-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com




  parent reply	other threads:[~2005-07-25 17:00 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 [this message]
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