March 20, 2011 [Issue 5758] New: std.path.join is not evaluable at compile-time | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5758 Summary: std.path.join is not evaluable at compile-time Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: andrej.mitrovich@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-03-20 10:13:55 PDT --- module test; import std.path; string objdir = join(".", r"\dfl\obj\"); void main() {} test.d(4): Error: variable __arrayArg1231 is used before initialization test.d(4): Error: cannot evaluate join(".","\\dfl\\obj\\",(const(char)[][0u] __arrayArg1231 = void; , cast(const(char)[][])__arrayArg1231)) at compile time test.d(4): Error: cannot evaluate join(".","\\dfl\\obj\\",(const(char)[][0u] __arrayArg1231 = void; , cast(const(char)[][])__arrayArg1231)) at compile time The join() implementation is quite ugly. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 21, 2011 [Issue 5758] std.path.join is not evaluable at compile-time | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=5758 Andrej Mitrovic <andrej.mitrovich@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-03-20 17:34:12 PDT --- std.path is probably being replaced, and apparently doesn't suffer from this problem. I'm closing it down. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation