Skip to content

Instantly share code, notes, and snippets.

@raph-amiard
Created May 3, 2018 12:55
Show Gist options
  • Save raph-amiard/65fbf47f046ed9051b724f251a1f6112 to your computer and use it in GitHub Desktop.
Save raph-amiard/65fbf47f046ed9051b724f251a1f6112 to your computer and use it in GitHub Desktop.
with Ada.Text_IO; use Ada.Text_IO;
procedure Numval is
type Enum is (A, B, C, D, E, F);
L : Integer := Enum'Pos(Enum'Last) - Enum'Pos(Enum'First);
begin
Put_Line (L'Image);
end Numval;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment