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
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;
}
import std.stdio;
import core.memory;
struct sQueue(T)
{
struct sNode
{
T mfPayload = T.init;
union{
typeof(this)* mfPrev;
shared(typeof(this)*) mfShPrev;
}
un
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
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
ulong vv = 1 << 60 ;
"Error: shift by 60 is outside the range 0..31" ??
// 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.
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
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
// 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
10 matches
Mail list logo