[dmd-internals] imports in functions

Walter Bright walter at digitalmars.com
Tue Jun 21 22:12:24 PDT 2011



On 6/21/2011 7:34 PM, Jonathan M Davis wrote:
> Isn't it supposed to be legal to put imports in functions now? A recent commit
> to std.file does that, and it's failing to compile because of the import
> within a function.
>

Yes, it's supposed to be legal now. Do you have a small test case?


More information about the dmd-internals mailing list