File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,3 @@ tags = [ "countries", "iso-1366" ]
88authors = [" AJ Ianozi" ]
99maintainers = [" AJ Ianozi <aj@ianozi.com>" ]
1010maintainers-logins = [" AJ-Ianozi" ]
11-
12- [build-switches ]
13- "*".ada_version = " Ada2022"
Original file line number Diff line number Diff line change @@ -442,10 +442,12 @@ package body Countries is
442442 Put_Line (F, " return From_Alpha2 (Alpha2_Code (Code));" );
443443 Put_Line (F, " end From_Country_Code;" );
444444 Put_Line (F, " function Init_Countries return All_Countries is" );
445- Put_Line (F, " Result : constant All_Countries :=" );
446- Put_Line (F, " [for X in Country_Key'Range => (Key => X)];" );
447445 Put_Line (F, " begin" );
448- Put_Line (F, " return Result;" );
446+ Put_Line (F, " return Result : All_Countries do" );
447+ Put_Line (F, " for X in Country_Key'Range loop" );
448+ Put_Line (F, " Result (X) := (Key => X);" );
449+ Put_Line (F, " end loop;" );
450+ Put_Line (F, " end return;" );
449451 Put_Line (F, " end Init_Countries;" );
450452 Put_Line (F, " -- *** End Creation Functions ***" );
451453 Put_Line (F, " " );
Original file line number Diff line number Diff line change @@ -1060,10 +1060,12 @@ package body ISO.Countries is
10601060 return From_Alpha2 (Alpha2_Code (Code));
10611061 end From_Country_Code ;
10621062 function Init_Countries return All_Countries is
1063- Result : constant All_Countries :=
1064- [for X in Country_Key'Range => (Key => X)];
10651063 begin
1066- return Result;
1064+ return Result : All_Countries do
1065+ for X in Country_Key'Range loop
1066+ Result (X) := (Key => X);
1067+ end loop ;
1068+ end return ;
10671069 end Init_Countries ;
10681070 -- *** End Creation Functions ***
10691071
You can’t perform that action at this time.
0 commit comments