Strange behavior of iota

jmh530 john.michael.hall at
Wed Feb 16 15:21:11 UTC 2022

On Tuesday, 15 February 2022 at 22:24:53 UTC, bachmeier wrote:
> [snip]
> After looking at the documentation and seeing CommonType!(int, 
> uint) is uint, I have to say that iota's behavior doesn't make 
> much sense.

What do you propose as an alternative? What about the narrowest 
type that fits both int and uint? That would be a long.

More information about the Digitalmars-d-learn mailing list