Created
May 3, 2018 12:55
-
-
Save raph-amiard/65fbf47f046ed9051b724f251a1f6112 to your computer and use it in GitHub Desktop.
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 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