[Issue 14445] New: std.net.curl not usable in @safe code
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Apr 13 17:30:51 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14445
Issue ID: 14445
Summary: std.net.curl not usable in @safe code
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: braddr at puremagic.com
module safecurl;
void main() @safe
{
import std.net.curl;
import std.stdio: writeln;
char[] foo = get("http://dlang.org/");
writeln("length: ", foo.length);
}
safe-curl.d(8): Error: safe function 'D main' cannot call system function
'std.net.curl.get!(AutoProtocol, char).get'
The rest of std.net.curl is pretty much the same.. the whole module needs to be
whacked by the @safe stick.
--
More information about the Digitalmars-d-bugs
mailing list