On Saturday, 25 March 2017 at 16:46:00 UTC, crimaniak wrote:
On Saturday, 25 March 2017 at 16:08:49 UTC, NotSpooky wrote:
__gshared implies static,...
Thanks! Confusing for me moment.
try this:
import std.stdio;
void main()
{
import std.stdio;
__gshared File f;
On Saturday, 25 March 2017 at 16:08:49 UTC, NotSpooky wrote:
__gshared implies static,...
Thanks! Confusing for me moment.
On Saturday, 25 March 2017 at 15:52:15 UTC, crimaniak wrote:
Simple File test:
void main()
{
import std.stdio;
File f = File("test.txt", "w");
f.writeln("hello");
}
All works as expected.
Now let's add __gshared:
void main()
{
import std.s
Simple File test:
void main()
{
import std.stdio;
File f = File("test.txt", "w");
f.writeln("hello");
}
All works as expected.
Now let's add __gshared:
void main()
{
import std.stdio;
__gshared File f = File("test.txt", "w");