Re: core.atomic bug? windows 2008r2 dmd 2.69.2 x64

2016-01-04 Thread sdv via Digitalmars-d
On Tuesday, 5 January 2016 at 00:58:57 UTC, sdv wrote: struct sts { size_t a1; struct m1{ size_t a9; size_t a10; } shared m1 t1; } int main(string[] argv) { auto y1 = new sts(); cas(&y1.t1,y1.t1,y

core.atomic bug? windows 2008r2 dmd 2.69.2 x64

2016-01-04 Thread sdv via Digitalmars-d
struct sts { size_t a1; struct m1{ size_t a9; size_t a10; } shared m1 t1; } int main(string[] argv) { auto y1 = new sts(); cas(&y1.t1,y1.t1,y1.t1); return 0; }

Compile error!

2015-07-31 Thread sdv via Digitalmars-d
import std.stdio; import core.memory; struct sQueue(T) { struct sNode { T mfPayload = T.init; union{ typeof(this)* mfPrev; shared(typeof(this)*) mfShPrev; } un

Re: Compile error!

2015-07-31 Thread sdv via Digitalmars-d
On Saturday, 1 August 2015 at 04:26:45 UTC, sdv wrote: import std.stdio; import core.memory; struct sQueue(T) { struct sNode { T mfPayload = T.init; union{ typeof(this)* mfPrev; shared(typeof

Re: "shift by 64 is outside the range 0..31" dmd x64

2015-07-09 Thread sdv via Digitalmars-d
On Thursday, 9 July 2015 at 10:05:12 UTC, Marc Schütz wrote: On Thursday, 9 July 2015 at 09:57:16 UTC, sdv wrote: ulong vv = 1 << 60 ; "Error: shift by 60 is outside the range 0..31" ?? Try: ulong vv = 1UL << 60; Integer literals are of type `int` by defau

"shift by 64 is outside the range 0..31" dmd x64

2015-07-09 Thread sdv via Digitalmars-d
ulong vv = 1 << 60 ; "Error: shift by 60 is outside the range 0..31" ??

optlink error

2011-12-02 Thread sdv
// a.d struct demo { char lin1; char lin2; . .. ... char lin707; } dmd.exe -c "a.d" -of "a.obj" -gc -debug dmd.exe "a.obj" -gc -debug line < 700 it ok work.

Re: link error

2011-12-02 Thread sdv
line <700 is ok work. line > 707 It does not work. "Jesse Phillips" news:2011120632.66c8@unknown... > On Fri, 2 Dec 2011 00:58:23 +0800 > "sdv" wrote: > >> // a.d >> struct demo >> { >> char lin1; >> char l

dll error

2011-12-01 Thread sdv
a.d import core.runtime; import core.sys.windows.windows; import core.sys.windows.dll; //import mach3plugins; __gshared HINSTANCE g_hInst; extern (Windows) BOOL DllMain(HINSTANCE hInstance, ULONG ulReason, LPVOID pvReserved) { switch (ulReason) { case DL

link error

2011-12-01 Thread sdv
// a.d struct demo { char lin1; char lin2; . .. ... char lin707; } dmd.exe -c "a.d" -of "a.obj" -gc -debug dmd.exe "a.obj" -gc -debug -L/IMPLIB:a.lib -ofa.dll It does not work