Ada · Lesson 3

Range types and subtypes

Define your own integer ranges, use Natural and Positive, and catch Constraint_Error.

Lessons · Ada · Lesson 3 of 10

Range types and subtypes

Define your own integer ranges, use Natural and Positive, and catch Constraint_Error.

Illustration for Ada
Define your own integer ranges, use Natural and Positive, and catch Constraint_Error.