On 13 February 2012 15:31, Daniel Murphy <yebbl...@nospamgmail.com> wrote: > "Iain Buclaw" <ibuc...@ubuntu.com> wrote in message > news:mailman.287.1329145247.20196.digitalmar...@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';