[dmd-internals] imports in functions
Jonathan M Davis
jmdavisProg at gmx.com
Tue Jun 21 22:19:15 PDT 2011
On 2011-06-21 22:12, Walter Bright wrote:
> 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?
I haven't tried to reduce it, but std.file.listDir imports std.regexp on line
3550 of std.file, and that's failing. So, I can try and reduce it, but there
is a failing case which is checked in.
- Jonathan M Davis
More information about the dmd-internals
mailing list