Mangling for cent/ucent

Daniel Murphy yebblies at nospamgmail.com
Sat Feb 23 08:36:42 PST 2013


"Iain Buclaw" <ibuclaw at ubuntu.com> wrote in message 
news:mailman.1485.1361633569.22503.digitalmars-d at puremagic.com...
>
> No reason not to allow all typical numeric operations.  Of course you'll
> need explicit casts to do 'long = cent' operations, and 'cent = long+long'
> should not require a cast.
>
> Overall, there's nothing that looks too special about the type, and 
> support
> for it appears to work just fine when testing simple working cases on 
> 32bit.
>

The problem is in adding complete support to the frontend, you need 128-bit 
integer literals, constant folding, ctfe and range propagation.  There's 
probably more work involved in adding it to the dmd frontend than the dmd 
backend. 




More information about the Digitalmars-d mailing list