http://d.puremagic.com/issues/show_bug.cgi?id=4593


Andrej Mitrovic <andrej.mitrov...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrov...@gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2010-08-07 
11:32:05 PDT ---
I can't reproduce this on XP SP3, the output is fine for me:

b.d
--------------------------------
import std.stdio;
import a;

void main()
{
    writeln("Hello, world!");
    writeln(foo("some.path"));
}
--------------------------------

a.d
--------------------------------
import std.string;
import std.stdio;

static string foo(string path)
{
    auto strs = path.split(".");
    return strs.length ? strs[$ - 1] : "";
}
--------------------------------

C:\Test>dmd -oftest.exe -unittest a.d b.d

C:\Test>test
Hello, world!
path

Same thing when using a unittest block in b.d.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to