Iain Buclaw ibuclaw at ubuntu.com
Mon Feb 13 08:49:33 PST 2012

On 13 February 2012 15:31, Daniel Murphy <yebblies at nospamgmail.com> wrote:
> "Iain Buclaw" <ibuclaw at ubuntu.com> wrote in message
> news:mailman.287.1329145247.20196.digitalmars-d at puremagic.com...
>> O_O
> =) Which bit's making you pull that face?  Is it the fact I think it might
> be a good idea or the fact I think it wouldn't be that hard?

It's the fact that it does *nothing* to change code generation, as D
code compiles down to the same as C equivalent.

/* SNIP */

> Looking at that, it seems I'd forgotten just how ugly C really is.

Code represented like that is exactly what gdc emits to it's backend
for your example, albeit, a in a little bit more simplified language
(and a little bit more optimized once it goes through all codegen
passes =)

Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';

More information about the Digitalmars-d mailing list