Migrating D front end to D - post Dconf

Iain Buclaw ibuclaw at ubuntu.com
Mon May 6 03:34:56 PDT 2013


On 6 May 2013 08:19, Daniel Murphy <yebblies at nospamgmail.com> wrote:

> "Walter Bright" <newshound2 at digitalmars.com> wrote in message
> news:km7fml$2rka$1 at digitalmars.com...
> > When devising solutions, I want to prefer solutions that do not rely on
> > #ifdef/#endif. I've tried to scrub those out of the dmd front end source
> > code.
>
> I completely agree.  But - refactoring the glue layer interface to use a
> proper visitor interface (what I suspect is the best solution) is a rather
> large change and will be much easier _after_ the conversion.
>
> While ifdefs are a pain in general, the big problem is this pattern.
> if (a && b &&
> #if SOMETHING
>     c && d &&
> #else
>     e && f &&
> #endif
>     g && h) {
> ...
>
>
^^ One thing I won't miss about removing all DMDV1 macros from GDC glue. ;)



-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130506/06e89ad9/attachment.html>


More information about the Digitalmars-d mailing list