https://issues.dlang.org/show_bug.cgi?id=12314

RazvanN <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |WONTFIX

--- Comment #8 from RazvanN <[email protected]> ---
I don't really see any benefit in allowing this sort of behavior. If you have
only 2-3 modules that you are importing you can either just put those imports
top-level or just use them selectively inside the functions that require them.
I think that D already provides plenty of options for such scenarios, therefore
it is not needed to further complicate the language implementation to allow
such a narrow use case.

If needed, the workaround presented by Nick is applicable.

--

Reply via email to