<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 22, 2016, at 10:56 AM, Jonathan M Davis <<a href="mailto:newsgroup.d@jmdavisprog.com" class="">newsgroup.d@jmdavisprog.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">On Monday, February 22, 2016 09:59:31 Steven Schveighoffer via dmd-internals wrote:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""><blockquote type="cite" class="">On Feb 22, 2016, at 7:04 AM, Jonathan M Davis via dmd-internals <<a href="mailto:dmd-internals@puremagic.com" class="">dmd-internals@puremagic.com</a>> wrote:<br class=""><br class="">On Sunday, February 21, 2016 19:08:37 Steven Schveighoffer via dmd-internals wrote:<br class=""><blockquote type="cite" class=""><br class="">The key comment in those PRs: <a href="https://github.com/D-Programming-Language/dmd/pull/5426#issuecomment-181589047" class="">https://github.com/D-Programming-Language/dmd/pull/5426#issuecomment-181589047</a><br class=""></blockquote><br class="">Well, while I can see why from an implementation perspective, it makes sense<br class="">to say that when you have<br class=""><br class="">import foo.bar : baz;<br class=""><br class="">you haven't really imported the module, so foo.bar.baz isn't legit, and you<br class="">have to say baz, from a usability perspective, nobody is going to expect<br class="">that foo.bar.baz suddenly is just baz and not foo.bar.baz, because you<br class="">imported it with a selective imports.<br class=""></blockquote><br class="">Like the comment says, however, what if you have a local foo symbol defined? The compiler is going to complain, or silently choose one (I think with the new lookup rules, it would choose the local module’s name).<br class=""><br class="">With Phobos, this isn’t strictly an issue, since we have no local symbols named std. But I could see lots of problems with other libraries.<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">In that case, using static imports makes sense.</span></div></blockquote><div><br class=""></div>I think you misunderstood the problem. If you have a local foo declared, then the FQN doesn’t help (as it starts with foo), you need to use a different name that doesn’t conflict, requiring either a renamed import, or using the leaf symbol name.</div><div><br class=""></div><div>-Steve</div><br class=""></body></html>