http://d.puremagic.com/issues/show_bug.cgi?id=9918
Summary: Strang error: void initializers for pointers not
allowed in safe functions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 2013-04-11
04:30:46 PDT ---
import std.path;
string joinPath(C)(const(C[])[] paths...) @safe pure
{
return buildNormalizedPath(buildPath(paths));
}
void main()
{
joinPath("foo", "bar");
}
Using 2.063 git-head:
test.d(7): Error: variable test.joinPath!(char).joinPath.__arrayArg2219 void
initializers for pointers not allowed in safe functions
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------