Skip to content

Instantly share code, notes, and snippets.

@Keith-S-Thompson
Created March 10, 2012 00:14
Show Gist options
  • Save Keith-S-Thompson/2009420 to your computer and use it in GitHub Desktop.
Save Keith-S-Thompson/2009420 to your computer and use it in GitHub Desktop.
Ada multiple elaboration of non-generic package
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