Time to move std.experimental.checkedint to std.checkedint ?

Jacob Carlborg doob at me.com
Tue Mar 30 15:28:04 UTC 2021


On Tuesday, 30 March 2021 at 03:31:05 UTC, Walter Bright wrote:

> Note that Zig has a very different idea of integers than D 
> does. It has arbitrary bit width integers, up to 65535. This 
> seems odd, as what are you going to do with a 6 bit integer? 
> There aren't machine instructions to support it. It'd be better 
> off with a ranged integer, say:
>
>    i : int 0..64

The question is then, does that mean that Zig has over 131070 
keywords (65535  for signed and unsigned each)? :D. Or does it 
reserve anything that starts with i/u followed by numbers? Kind 
of like how D reveres identifiers starting with two underscores.

--
/Jacob Carlborg


More information about the Digitalmars-d mailing list