August 29, 2018 Issues » [Issue 19203] New: alias this to a bool behaves both inconsistently and incorrectly with static assert | |||
|---|---|---|---|
| |||
...false
pragma(msg, typeof(a)); // bool
// Fine:
// Error: static assert: b is false
static assert... | |||
August 17, 2018 Issues » [Issue 19177] New: No version (Solaris) in druntime/src/core/stdc/time.d | |||
|---|---|---|---|
| |||
...d(142): Error: static assert: "unsupported system"
This...version (X86)
extern (C) pragma(mangle, "clock$UNIX2003... | |||
August 06, 2018 Issues » [Issue 19145] New: template alias with same name in function doesn't re-instantiate | |||
|---|---|---|---|
| |||
...static assert(!isInt!item); // failure all the way back to 2.060
}
}
The pragma prints... | |||
August 06, 2018 Issues » [Issue 19144] New: Imported package have different protection depending on how it's accessed | |||
|---|---|---|---|
| |||
...traits(getMember, file1, "std"))); pragma(msg, __traits(getProtection, file1.std)); static assert( __traits(isSame, __traits... | |||
July 07, 2018 Learn » Re: Outside array bounds | |||
|---|---|---|---|
| |||
Throw in a pragma here:
void process(T...args[$-1]);
else
static assert(false);
}
Another option... | |||
July 05, 2018 Issues » [Issue 19064] [REG2.081] Vibe.d's InterfaceProxy no longer works | |||
|---|---|---|---|
| |||
...read(dst, IOMode.all);
assert(n == dst.length...member; __traits(allMembers, ConnectionStream))
{
pragma(msg, __traits(getOverloads... | |||
July 05, 2018 Learn » Re: 'is(T==return)' How does is expression with return keyword as TypeSpecialization | |||
|---|---|---|---|
| |||
...1337; }
template Temp(T)
{
//pragma(msg, typeof(T...Temp!(typeof(&fun))(&fun);
assert(i == 1337);
}
So... | |||
July 05, 2018 Learn » 'is(T==return)' How does is expression with return keyword as TypeSpecialization | |||
|---|---|---|---|
| |||
...T)(T i)
{
static assert(is(typeof(return) == T)); //true
pragma(msg, is(T == return... | |||
July 01, 2018 Learn » Re: Function Template for Dynamic Parameter | |||
|---|---|---|---|
| |||
...args)
{
static assert(T.length <= 3);
static assert(is(T[0] == int)); // 1
pragma(msg... | |||
June 13, 2018 General » Re: is(T t == U!n, U, int n) | |||
|---|---|---|---|
| |||
...U!0;
}
else
{
static assert(0);
}
}
class S(int n) { }
pragma(msg, X!(S!3... | |||
Copyright © 1999-2021 by the D Language Foundation