'fopen64 cannot be interpreted at compile time' for __gshared File

StarGrazer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Mar 25 12:26:35 PDT 2017


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;
	f = File("test.txt", "w");

         f.writeln("hello");
     }


More information about the Digitalmars-d-learn mailing list