<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 6 May 2013 08:19, Daniel Murphy <span dir="ltr"><<a href="mailto:yebblies@nospamgmail.com" target="_blank">yebblies@nospamgmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">"Walter Bright" <<a href="mailto:newshound2@digitalmars.com">newshound2@digitalmars.com</a>> wrote in message<br>

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