Re: ++ of C in ada



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@xxxxxxxxxxxxxxxxxxxxx
Ada programming at: http://ada.krischik.com

.



Relevant Pages

  • Re: SuSE 10.0
    ... Active context (compiler version / development environment). ... Martin ... Ada programming at: http://ada.krischik.com ... Prev by Date: ...
    (comp.lang.ada)
  • Re: What about big integers in Ada 2005?
    ... I allways thought we have both: ... Martin ... Ada programming at: http://ada.krischik.com ... Prev by Date: ...
    (comp.lang.ada)
  • Praxis High Integrity Systems got /.
    ... I have no time to read it right now but I expect a nice flame war: ... Martin ... Ada programming at: http://ada.krischik.com ... Prev by Date: ...
    (comp.lang.ada)
  • Re: sizeof in ADA
    ... > I would like to know how to write an equivolent of the C function ... Martin ... Ada programming at: http://ada.krischik.com ... Prev by Date: ...
    (comp.lang.ada)
  • Re: neuer Stern am Verkehrstechnikhimmel
    ... (Hat jemand halbwegs aktuelle Zahlen für .de?) ... Martin ... Prev by Date: ...
    (de.etc.bahn.stadtverkehr)