Also, I've found yet another with bug:

import std.stdio;
static import std.string;

void main()
{
    with (std.string) writeln(entab("    "));
}

OPTLINK (R) for Win32  Release 8.00.12
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
C:\DOCUME~1\Andrej\LOCALS~1\Temp\.rdmd\rdmd-test.d-A365FA805A6F8950E12081529066367B\test-d-A365FA805A6F8950E12081529066367B.obj(test-d-A365FA805A6F8950E12081529066367B)
 Error 42: Symbol Undefined _D3std6string14__T5entabTAyaZ5entabFAyakZAya
C:\DOCUME~1\Andrej\LOCALS~1\Temp\.rdmd\rdmd-test.d-A365FA805A6F8950E12081529066367B\test-d-A365FA805A6F8950E12081529066367B.obj(test-d-A365FA805A6F8950E12081529066367B)
 Error 42: Symbol Undefined _D3std5stdio16__T7writelnTAyaZ7writelnFAyaZv

But if I put curly braces it works:

with (std.string) { writeln(entab("    ")); }

'with' is looking like a feature that was least thought about when it
was introduced since it's so full of bugs.

Reply via email to