next up previous contents
Next: Real Up: Types and Ranges Previous: Types and Ranges   Contents

Int

The range specification is of the form

lower:upper:stride

where lower and upper specify the lower and upper allowed range, and stride allows numbers to be be missed out, e.g.

1:21:2
means the value must be an odd number between one and twenty-one (inclusive).

A missing end of range (or a `*') indicates negative or positive infinity, and the default stride is one.