<br><br><div class="gmail_quote">On Mon, Mar 1, 2010 at 17:26, Norbert Nemec <span dir="ltr">&lt;<a href="mailto:Norbert@nemec-online.de">Norbert@nemec-online.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks, Philippe, for the elegant workaround!<br></blockquote><div><br>De nada. I vaguely remembered being confronted by this one, but didn&#39;t know it was a bug (my code wasn&#39;t as clear as yours). I now realize that my coding in D is a least partially made of such tricks.<br>
 <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Still I would like to know the reason for my original failure, especially since the compiler error message did not contain any line number whatsoever. Getting this kind of error message in a large project must be really ugly to solve, even if the workaround is so straightforward...<br>
</blockquote><div><br>What bugs (!) me is that a+(b+c) didn&#39;t create an error, whereas (a+b)+c did... I first tried to define opAdd_r so that the compiler could try c.opAdd_r((a+b)), but to no avail...<br><br>As for the line numbers, yes it&#39;s hard and it&#39;s reason enough to put this on bugzilla. Maybe even as 2 different tickets.<br>
<br>I remember having other incomplete error messages some days ago. I should strive to note them and put them on puremagic.<br><br>  Philippe<br><br><br><br></div></div>