Skip to content

Instantly share code, notes, and snippets.

@jsinglet
Created January 7, 2020 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsinglet/fefc2c3dab23d43096922fee7dcc297f to your computer and use it in GitHub Desktop.
Save jsinglet/fefc2c3dab23d43096922fee7dcc297f to your computer and use it in GitHub Desktop.
Procedure Main is
type My_Array_Type is array (Natural range<>) of Integer;
procedure Do_Stuff(Things : aliased in out My_Array_Type) is
begin
for I in Things'Range loop
null;
end loop;
end Do_Stuff;
procedure Do_Stuff(Num_Things : Integer) is
Things : aliased My_Array_Type(1..Num_Things);
begin
Do_Stuff(Things);
end Do_Stuff;
begin
Do_Stuff(1000);
end Main;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment