When will you implement cent and ucent?

Tejas notrealemail at gmail.com
Fri Apr 1 04:48:02 UTC 2022


On Friday, 1 April 2022 at 03:37:48 UTC, rikki cattermole wrote:
>
> On 01/04/2022 9:18 AM, Quirin Schroll wrote:
>> At some point, it’s going to be easier to make those types 
>> `__traits(signed, 128)`, `__traits(unsigned, 256)`, 
>> `__traits(signed, 512)` and so on, plus some `alias ducent = 
>> __traits(signed, 256)` in object.d instead of arguing where 
>> the right limit is.
>
> This is something I have long since considered.
>
> While dmd may not have been designed for this, it is my belief 
> that this is the only way forward for built in types.
>
> As hardware changes over the next hundred years, this will be a 
> major win for whoever does it this way.

So will this look something like
```d
alias i128 = __traits(signed, 128);
alias u512 = __traits(unsigned, 512);
```
And so on?


More information about the Digitalmars-d mailing list