July 08, 2020 Learn » Re: constructing labels for static foreach inside switch inside foreach | |||
|---|---|---|---|
| |||
...argi], (Parameters!FUNC)[argi])) {
//pragma(msg, format("implc...function call
} else {
static assert(0, format("No... | |||
July 06, 2020 Issues » [Issue 21018] New: Assert fails glue.d(1560) using -allinst due to an error making it into codegen | |||
|---|---|---|---|
| |||
...Issue ID: 21018
Summary: Assert fails glue.d...Specs ) {}
f(T.init);
} );
pragma(msg, is(Tuple... | |||
June 17, 2020 General » Re: static assert(0) in template is a disaster | |||
|---|---|---|---|
| |||
...conditions (static if, static assert, template constraints) and...1..5) {
x += i;
}
pragma(msg, x); // 10... | |||
June 17, 2020 General » Re: static assert(0) in template is a disaster | |||
|---|---|---|---|
| |||
...of how pragma(msg) works. It's evaluated eagerly. If you put a pragma(msg... | |||
June 17, 2020 General » Re: static assert(0) in template is a disaster | |||
|---|---|---|---|
| |||
...s more than a order-dependency issue. pragma(msg, Foo.tupleof.length); // prints 1 struct... | |||
June 16, 2020 General » static assert(0) in template is a disaster | |||
|---|---|---|---|
| |||
...I've put a pragma msg in the...now: conclusion: avoid static `assert(0)` in templates... | |||
June 15, 2020 General » Re: Contracts, Undefined Behavior, and Defensive,Programming | |||
|---|---|---|---|
| |||
...with such a pragma could not be elided by trusting a regular assert (nor by... | |||
June 13, 2020 General » Re: What does 'inline' mean? | |||
|---|---|---|---|
| |||
...assert(is(typeof(foo) == function));
static assert(is(typeof(bar) == function));
// this doesn't:
pragma... | |||
June 12, 2020 Learn » Re: Finding out ref-ness of the return of an auto ref function | |||
|---|---|---|---|
| |||
...static assert(__traits(isRef, x));
}(} ~ expr ~ q{))
};
pragma(msg, mixin(isLvalue!"foo()")); // true
pragma(msg... | |||
June 09, 2020 Issues » [Issue 20915] New: __traits(allMembers) results include custom version identifiers, which is unusable | |||
|---|---|---|---|
| |||
...member,
true).length == 0)
{
pragma(msg, "`", member, "` ", "is...break;
}
}
return result;
}
static assert(onlyFuncs());
void main... | |||
Copyright © 1999-2021 by the D Language Foundation