Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It depends on the base type - you can get the traditional unsigned integer wraparound behavior, too. But Ada is very explicit about this, to the point of referring to them as "modulo types", and defining them using the mod keyword instead of range:

   type Unsigned_32 is mod 2**32;


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: