Search

September 01, 2015
General »
...memory


The example with:
   // RPN calculator
simply outputs:
    -- No output --

The example with:
   // Get your...
August 31, 2015
Learn »
...four", 2));
  }

  writeln(Crumb1.sizeof, " ", Crumb2.sizeof);

}

outputs:

1 16

Is this correect behaviour?

Andrew
August 25, 2015
General »
...0 + x.epsilon;
	writeln(cast(ulong)(z));
}

Outputs:
11
12
12

I leave it at...
August 24, 2015
General »
...10.0));

	double y = x * 10.0;
	writeln(std.math.trunc(y));
}

Outputs:
11
12
August 24, 2015
General »
...cast(ulong)(x * 10.0));
  writeln(cast(ulong)noop(x * 10.0));
}

Outputs:
11
12
August 24, 2015
Issues »
...a", y, y2, cast(real)y3);
}

This outputs:

0xb.ffffffffffffep+0, 0xcp+0, 0xcp+0...
August 24, 2015
General »
...a, %a", y, y2, cast(real)y3);


outputs:

0xb.ffffffffffffep+0, 0xcp+0, 0xcp+0...
August 24, 2015
General »
...c, then it outputs 12. If I link against testfp2.d, it outputs 11.

I...
August 24, 2015
General »
...a", 1.2);
    writefln("%a", 12.0);
}

Outputs

0x1.3333333333333p+0
0x1.8p+3

Ali
August 23, 2015
Issues »
...void main()
{
    auto x = f() / f();
}
////////////////////////

DMD outputs the following x86_64 opcodes:

55                                   push...
55 56 57 58 59 60 61 62 63 64 65 66
Next ›   Last »