RosettaCodeData/Task/Define-a-primitive-data-type/00DESCRIPTION

2 lines
256 B
Text
Raw Permalink Normal View History

2013-04-10 12:38:42 -07:00
Demonstrate how to define a type that behaves like an integer but has a lowest valid value of 1 and a highest valid value of 10. Include all bounds checking you need to write, or explain how the compiler or interpreter creates those bounds checks for you.