http://d.puremagic.com/issues/show_bug.cgi?id=3420
--- Comment #14 from Leandro Lucarella <llu...@gmail.com> 2009-12-04 10:12:16 PST --- Doesn't work on Linux, so this is a Windows-only problem (well, it was a Windows-only fix really :). Here is the fix: http://www.dsource.org/projects/dmd/changeset/156#file64 This is the entry in the DMD 1.042 changelog that fixed this problem: * Fix bug where / wasn't recognized as a path separator on Windows. Try with import("dir\\data.txt"), it should fail to compile in DMD 1.006+. So, summarizing: * DMD 1.006 introduces a regression, which is supposed to be a feature. * Supposing this is a real feature, you were relying on a bug in your programs, if you code them with DMD 1.006+ in the first place. * The specs are not clear about this, reading the specs there is no reason to think that import("a/b") shouldn't work (i.e., at least there should be a compiler switch to make it work or the specs should be fixed to reflect the reality). * There is a better solution to relax the current restrictions without being completely promiscuous about string imports (see attached patch). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------