Response to comment on this question
Created
March 10, 2012 00:14
-
-
Save Keith-S-Thompson/2009420 to your computer and use it in GitHub Desktop.
Ada multiple elaboration of non-generic package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with Ada.Text_IO; use Ada.Text_IO; | |
procedure Elab is | |
begin | |
for I in 1 .. 3 loop | |
declare | |
package Pkg is | |
end Pkg; | |
package body Pkg is | |
begin | |
Put_Line("Elaborating Pkg, I = " & Integer'Image(I)); | |
end Pkg; | |
begin | |
null; | |
end; | |
end loop; | |
end Elab; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment