[Issue 8447] Self importing is allowed?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 4 20:41:01 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8447


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-10-04 20:29:10 PDT ---
Phobos has a couple of these self-imports. They all seem to be in unittest
blocks, which maybe makes copy-pasting samples to outside modules easier since
you automatically get a free import statement included.

Maybe we should allow them in function/unittest scope, and disallow them in
module scope. Or should we just ban them outright?

I'm running a test suite on a fix right now.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list