[Issue 7397] [Regression] std.path.buildPath can't be used with	string[]
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Jan 29 17:28:14 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7397
Kenji Hara <k.hara.pg at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2012-01-29 17:28:12 PST ---
(In reply to comment #1)
> The compiler's new behavior is correct, it avoids the infamous "array slicing"
> problem - in this case, it avoids const data being incorrectly typed as
> immutable.
> 
> To fix the example:
> 
>   void buildPath(C)(const(C)[][] paths...)
> 
> becomes:
> 
>   void buildPath(C)(const(C[])[] paths...)
Walter's fix is right, but we should apply the fix to Phobos.
So this issue is still opened, because it is a Phobos issue, not dmd's.
-- 
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