www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5758] New: std.path.join is not evaluable at compile-time

reply d-bugmail puremagic.com writes:
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



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: -------
Mar 20 2011
parent d-bugmail puremagic.com writes:
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



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: -------
Mar 20 2011