[dmd-internals] imports in functions
Walter Bright
walter at digitalmars.com
Tue Jun 21 22:56:34 PDT 2011
On 6/21/2011 10:24 PM, Jonathan M Davis wrote:
>
> Actually, this incredibly simple case fails:
>
> void func()
> {
> import std.regexp;
> }
>
> void main()
> {
> func();
> }
>
> And I don't know how it could get any simpler than that, so that implies to me
> that the feature never actually made it in, but I don't know. But I _am_ using
> the latest HEAD from git, and the autotester is definitely failing because of
> the import in std.file. So, I don't know what's going on with this feature.
>
>
It compiles when I try it.
More information about the dmd-internals
mailing list