1 with Ada
.Strings
.Unbounded
; use Ada
.Strings
.Unbounded
;
5 type Enum
is (One
, Two
, Three
, Four
, Five
, Six
);
7 type Rec
(D
: Enum
) is record
11 when Two | Five | Six
=>
14 when Two
=> B
: Boolean;
22 type Rec_Ptr
is access all Rec
;
24 function Rec_Write
(R
: Rec
) return Unbounded_String
;
26 function Rec_Read
(Str
: String_Access
) return Rec
;