June 13, 2018 General » is(T t == U!n, U, int n) | |||
|---|---|---|---|
| |||
...static assert(0);
}
}
class S(int n) { }
pragma(msg, X!(S!3)); // S!0
pragma... | |||
June 13, 2018 General » newCTFE: perliminary delegate support is in! | |||
|---|---|---|---|
| |||
...assert(y2 == x);
assert(x == y);
return z;
}
return fnC();
}
return x + passThrough(x);
}
pragma... | |||
May 09, 2018 Learn » Extra .tupleof field in structs with disabled postblit blocks non-GC-allocation trait | |||
|---|---|---|---|
| |||
...this(this);
int* _ptr;
}
pragma(msg, typeof(S...NoGc int* _ptr;
}
static assert(!mustAddGCRangeOfStructOrUnion!S); // is... | |||
May 07, 2018 Issues » [Issue 18839] Crash on getMember of function masking imported template function | |||
|---|---|---|---|
| |||
...fun2;
void fun() { }
pragma(msg, __traits(getMember, foo, "fun").stringof);
static assert(__traits(compiles, __traits... | |||
May 07, 2018 Issues » [Issue 18839] New: Crash on getMember of function masking imported template function | |||
|---|---|---|---|
| |||
...those lines crashes pragma(msg, __traits(getMember, foo, "fun").stringof); static assert(__traits(compiles, __traits... | |||
May 05, 2018 Issues » [Issue 18829] New: pragma msg of int incoherent | |||
|---|---|---|---|
| |||
...pragma(msg, typeof(int.init)); // Works: int
pragma...int`.
// ...
// but, obviously:
static assert(is(typeof(int... | |||
April 23, 2018 Learn » Re: Getting the overload set of a template | |||
|---|---|---|---|
| |||
...void main()
{
pragma(msg, A.Foo1!2);
pragma(msg, A.Foo1!3);
static assert(!is... | |||
April 23, 2018 Issues » [Issue 17867] @trusted destructor not callable from @safe function | |||
|---|---|---|---|
| |||
...that calls member destructors.
pragma(msg, __traits(allMembers, S2));
s.__xdtor();
assert(s.a.value... | |||
April 15, 2018 Learn » Re: Why is the error message coming by the end of the compilation? | |||
|---|---|---|---|
| |||
...generateViewsResult)
{
pragma(msg, "Compiling: " ~ viewResult.name);
pragma(msg...static assert(!__traits(compiles, mixin(s)));
static assert... | |||
April 02, 2018 Learn » How to destruct class instances allocated by a Region-allocator over a single GC block | |||
|---|---|---|---|
| |||
...this should be pure
{
pragma(inline, true);
return...x = make!DoubleNode(42);
assert(x);
latestPtr = cast... | |||
Copyright © 1999-2021 by the D Language Foundation