February 12, 2020 General » Re: DIP 1030--Named Arguments--Community Review Round 1 Discussion | |||
|---|---|---|---|
| |||
static if (condition) pragma(msg, "Look, Ma!");
Or static assert().
Note that the compiler already... | |||
January 16, 2020 Issues » [Issue 19542] Forward reference segfault with string namespace C++ syntax | |||
|---|---|---|---|
| |||
...such as `pragma(msg)` and `enum`, but not others, such as `static assert`, hence why... | |||
January 16, 2020 Issues » [Issue 19542] Forward reference segfault with string namespace C++ syntax | |||
|---|---|---|---|
| |||
...such as `pragma(msg)` and `enum`, but not others, such as `static assert`, hence why... | |||
January 10, 2020 Learn » template instantiation problems | |||
|---|---|---|---|
| |||
...mod1;
pragma(msg, "C");
static assert(a == "foo");
static assert(b == ""); // Error: static assert: "foo... | |||
December 12, 2019 Learn » Re: Mapping float to ulong in CTFE | |||
|---|---|---|---|
| |||
...3.0f)); // 1077936128u
pragma (msg, bitRepresentation(3.0)); // 4613937818241073152LU
void main()
{
static assert(bitRepresentation(3... | |||
November 21, 2019 Issues » [Issue 20410] ReplaceTypeUnless replaces enums with their basetype | |||
|---|---|---|---|
| |||
...Foo : string { bar = "baz" }
pragma(msg, ReplaceType!(char...Enum : string { foo = "Bar" }
assert(is(ReplaceType!(char... | |||
November 12, 2019 General » Re: D enters Tiobe top 20 | |||
|---|---|---|---|
| |||
...pragma Assume has a clear meaning and works fine. Given that we already have assert... | |||
October 27, 2019 Learn » Re: Supporting inout haystack in array-overload of findSplitBefore without template-bloat | |||
|---|---|---|---|
| |||
...string));
assert(r);
assert(r.pre == "a*");
assert...private size_t _offset;
pragma(inline, true):
inout... | |||
October 27, 2019 Learn » Re: Supporting inout haystack in array-overload of findSplitBefore without template-bloat | |||
|---|---|---|---|
| |||
...string));
assert(r);
assert(r.pre == "a*");
assert...offset;
auto pre() @trusted
{
pragma(inline, true);
if... | |||
October 15, 2019 General » Re: Feedback on Átila's Vision for D | |||
|---|---|---|---|
| |||
...contracts, out contracts, and assert statements, e.g...end of the message. pragma(msg) get's... | |||
Copyright © 1999-2021 by the D Language Foundation