[Issue 5758] New: std.path.join is not evaluable at compile-time
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 20 10:17:10 PDT 2011
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 at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at 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: -------
More information about the Digitalmars-d-bugs
mailing list