Why does hello world not compile in safe?
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Nov 28 23:28:39 PST 2014
'cause `writeln`() is not @safe, as you can read in the following
compiler message:
> source/app.d(5): Error: safe function 'D main' cannot call system
> function 'std.stdio.writeln!(string).writeln'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20141129/9c84f8db/attachment.sig>
More information about the Digitalmars-d-learn
mailing list