On 12/29/15 4:57 AM, tsbockman wrote:
Trying to compile this:
void main() @safe
{
import std.stdio;
stdout.flush();
}
Fails with this message:
Error: safe function 'main' cannot access __gshared data 'stdout'
Is this necessary? If so, what are the synchronization requirements for
Trying to compile this:
void main() @safe
{
import std.stdio;
stdout.flush();
}
Fails with this message:
Error: safe function 'main' cannot access __gshared data
'stdout'
Is this necessary? If so, what are the synchronization
requirements for access to `stdout`?