number ranges
forkit
forkit at gmail.com
Tue Jan 18 22:08:02 UTC 2022
On Tuesday, 18 January 2022 at 20:50:06 UTC, Ali Çehreli wrote:
>
> Needs a little more work to be correct. The following produces
> and empty range. ;)
>
> range(uint.min, uint.max)
>
> Also, is it important for the result to be the same as T? For
> example, even if T is ubyte, because b+1 is 'int', the range
> will produce ints.
>
> Ali
a change of mind...
never use number ranges.. not ever! ;-)
(except in combination with iota)
More information about the Digitalmars-d-learn
mailing list