[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:10:37 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7397
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugzilla at digitalmars.com
Resolution| |INVALID
--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2012-01-29 17:10:35 PST ---
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...)
--
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