Enum bounds



Enum bounds
Pas2JS pascal source code
type MyEnum = enum(a, b, c = 255); type MyEnum2 = enum(High, Low, a, b, c = 255); type MyFlags = flags(a, b, c); WriteLn(MyEnum.Low); WriteLn(MyEnum.High); WriteLn(MyEnum2.Low); WriteLn(MyEnum2.Low()); WriteLn(MyEnum2.High); WriteLn(MyEnum2.High()); WriteLn(MyFlags.Low); WriteLn(MyFlags.High); { <<< CONSOLE OUTPUTS >>> 0 255 1 0 0 255 1 4 }