3 ms·
I know Ada not D. Nim's subrange are close to Ada. If you define a type t1 = range [5..20] and you assign a value of 1 to a variable of type t1 then you get a c
by progman 10y ago
I know Ada not D. Nim's subrange are close to Ada. If you define a type t1 = range [5..20] and you assign a value of 1 to a variable of type t1 then you get a compilation or runtime error.
- vram22 10y agoAh, then that is similar to Pascal too, from its early versions, IIRC, not just Turbo Pascal onwards.