Can we have ucent ?
Stefan Koch
uplink.coder at googlemail.com
Thu Nov 1 00:37:53 UTC 2018
On Wednesday, 31 October 2018 at 22:02:34 UTC, Basile B. wrote:
> On Tuesday, 30 October 2018 at 18:07:23 UTC, Basile B. wrote:
>> For the first time today i had needed the ucent type.
>> Fortunately it was only for bit operations so easy to do as a
>> struct, however this is two hours lost for a type that's in a
>> curious state (rename it shrodinger128 maybe ?).
>>
>> I think that the feature could be implemented as compiler
>> special functions that would be located in druntime (with
>> special case for GDC and LDC since the type exists in their
>> respective backend if i understand correctly).
>
> Maybe the D foundation could finance a developer for this ? 300
> € sounds fine imo, because it's not so hard, the guy has to do
> it for DMD and communicate with the LDC/GDC devels so that they
> put the specific backend things. And after it's a long term
> stuff, meaning that ucent/cent types are there.
The hard parts here are Efficient and correct Division,
Multiplication as well as Converting from and to Floating-Point.
More information about the Digitalmars-d
mailing list