2 ms·
http://faculty.cs.wwu.edu/reedyc/AdaResources/bookhtml/ch05.htm#5.3 http://faculty.cs.wwu.edu/reedyc/AdaResources/bookhtml/ch05.... Ada, and probably other lan
by Jtsummers 13y ago
http://faculty.cs.wwu.edu/reedyc/AdaResources/bookhtml/ch05.htm#5.3 http://faculty.cs.wwu.edu/reedyc/AdaResources/bookhtml/ch05....
Ada, and probably other languages, allows subtypes that restrict usage to a range of some other type. 2 sections below that is modular types, so you don't have to put in the `mod 500` or whatever your code needs every time, the compiler will fill that in for you as long as you are using that type.