<div dir="ltr"><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Sun, Apr 3, 2016 at 1:59 PM, tost via Digitalmars-d-announce <span dir="ltr"><<a href="mailto:digitalmars-d-announce@puremagic.com" target="_blank">digitalmars-d-announce@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Wednesday, 30 March 2016 at 11:03:51 UTC, Martin Nowak wrote:<br>
</span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Second beta for the 2.071.0 release.<br>
<br>
<a href="http://dlang.org/download.html#dmd_beta" rel="noreferrer" target="_blank">http://dlang.org/download.html#dmd_beta</a> <a href="http://dlang.org/changelog/2.071.0.html" rel="noreferrer" target="_blank">http://dlang.org/changelog/2.071.0.html</a><br>
<br>
Please report any bugs at <a href="https://issues.dlang.org" rel="noreferrer" target="_blank">https://issues.dlang.org</a><br>
<br>
-Martin<br>
</blockquote>
<br></div></div>
//foo.d<br>
module foo;<br>
<br>
void main() {}<br>
<br>
class A {<br>
<br>
        void bar(int i) {}<br>
<br>
        void baz() {<br>
                import othermodule;<br>
                bar("abc");<br>
        }<br>
}<br>
<br>
// othermodule.d<br>
module othermodule;<br>
<br>
void bar(string s) {}<br>
<br>
compiled with<br>
<br>
dmd foo.d othermodule.d<br>
<br>
gives<br>
<br>
foo.d(11): Error: function foo.A.bar (int i) is not callable using argument types (string)<br>
<br>
is this a feature of the new name lookup algorithm or a bug? Adapting my codebase would be trivial :)<br>
</blockquote></div><br></div><div class="gmail_extra">I think compiler is supposed to stop you from doing that to protect against hijacking.<div><a href="http://dlang.org/hijack.html">http://dlang.org/hijack.html</a><br></div><div><br></div><div>R</div></div></div>