[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Issue with gnat-4.9 and gprbuild on Jessie



On Sun, Aug 17, 2014 at 09:05:51PM +0200, Eugen Wintersberger wrote:
> According to 
> http://en.wikibooks.org/wiki/Ada_Programming/Installing
> gnat-4.6 should provide full support for Ada 2012.

As far as I remember, -gnat12 support was not complete in 4.6.

> However, things like 
> for e in vector loop
>   e := ....;
> end loop;
> does not work with gnat-4.6 on Jessie.

Maybe you are confusing two constructs.

with Ada.Text_IO; use Ada.Text_IO;
procedure Tmp is
   S : constant String := "abc";
begin
   for I in S'Range loop                --  Ada 83
      Put (S (I));
   end loop;
   New_Line;
   for C of S loop                      --  Ada 2012
      Put (C);
   end loop;
   New_Line;
end Tmp;


Reply to: