[Issue 12083] New: std.path.absolutePath doesn't accept mutable strings
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 5 07:14:11 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12083
Summary: std.path.absolutePath doesn't accept mutable strings
Product: D
Version: D2
Platform: All
OS/Version: All
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> 2014-02-05 07:14:08 PST ---
-----
import std.path;
void main()
{
char[] path = ".".dup;
auto abs = path.absolutePath;
}
-----
$ dmd test.d
> test.d(8): Error: function std.path.absolutePath (string path, lazy string base = getcwd()) is not callable using argument types (char[])
I think absolutePath should probably be typed as this or something similar:
inout(char)[] absolutePath(inout(char)[] path, lazy inout(char)[] base =
getcwd())
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list