← Back to index
|
Original Bugzilla link
Bug 5758 – std.path.join is not evaluable at compile-time
Status
RESOLVED
Resolution
WONTFIX
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-03-20T10:13:00Z
Last change time
2011-03-20T17:34:12Z
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0
by andrej.mitrovich — 2011-03-20T10:13:55Z
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.
Comment #1
by andrej.mitrovich — 2011-03-20T17:34:12Z
std.path is probably being replaced, and apparently doesn't suffer from this problem. I'm closing it down.