number ranges

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Jan 21 21:19:06 UTC 2022


> On Friday, 21 January 2022 at 17:25:20 UTC, Ali Çehreli wrote:
[...]
> > Additionally, just because we *provide* a step, now we *require*
> > division from all types (making it very cumbersome for user-defined
> > types).
[...]

It doesn't have to be this way. We could just use DbI to inspect whether
the incoming type supports division; if it does, we provide stepping,
otherwise, just plain ole iteration.

DbI rocks.


T

-- 
Doubt is a self-fulfilling prophecy.


More information about the Digitalmars-d-learn mailing list