Boys can we get cent/ucent

deadalnix via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Tue Jul 26 22:37:17 PDT 2016


On Tuesday, 26 July 2016 at 22:38:50 UTC, Johan Engelen wrote:
> On Friday, 22 July 2016 at 22:37:46 UTC, deadalnix wrote:
>> I know that DMD doesn't support it, but it has been a pain in 
>> the ass to not have cent/ucent for me.
>>
>> Adding support in LDC shouldn't be too difficult, as one can 
>> emit an i128 and let LLVM do the work. Would that be possible ?
>
> How does this avoid the "fork the language" department?
> I ask because I have a similar issue with vector operations
> (https://github.com/ldc-developers/ldc/pull/1485).

I say it is for the better. This isn't forking the language, 
cent/ucent have been in the spec like forever. Having some 
competition is good.

And TBH, I think this is also fine for the vector thing. We can't 
wait for DMD to reinvent the wheel for every backend feature.



More information about the digitalmars-d-ldc mailing list