June 09, 2020 Learn » filter custom version id from __traits code | |||
|---|---|---|---|
| |||
...member, true).length == 0)
{
pragma(msg, "`", member, "` ", "is...break;
}
}
return result;
}
static assert(onlyFuncs(), "this script... | |||
May 08, 2020 Issues » [Issue 20811] New: Regression as of 2.066.0 - CTFE static variable retained across calls | |||
|---|---|---|---|
| |||
...dup;
}
pragma(msg, bug());
pragma(msg, bug());
pragma...main() {
assert(bug == "5");
assert(bug == "5");
assert... | |||
April 23, 2020 General » Re: I dun a DIP, possibly the best DIP ever | |||
|---|---|---|---|
| |||
...2, 3); int[] myArr; assert([ myArr[Tup + 1...AliasSeq!(int, short, float); pragma(msg, cast(Types... | |||
April 22, 2020 Announce » Re: describe-d: an introspection library | |||
|---|---|---|---|
| |||
...Parameter(int i)
{
// static assert(false);
}
template reflectFunction...2, 3));
}
void foo();
pragma(msg, reflectFunction!(foo... | |||
April 09, 2020 General » Re: Request for Comment assert(__ctfe) | |||
|---|---|---|---|
| |||
...of actually statically recognizing ctfe-only code. pragma(ctfe) looks like a promising candidate to... | |||
April 09, 2020 General » Re: Request for Comment assert(__ctfe) | |||
|---|---|---|---|
| |||
...examples are:
```
int ctfeOnly() {
assert(__ctfe);
return 3...as version(__ctfe) or pragma(ctfe). Johannes Pfau... | |||
April 08, 2020 General » Re: Request for Comment assert(__ctfe) | |||
|---|---|---|---|
| |||
...using pragma(ctfe) here: https://github.com/dlang/dmd/pull/11014 Unlike the `assert(__ctfe... | |||
April 08, 2020 General » Re: Request for Comment assert(__ctfe) | |||
|---|---|---|---|
| |||
The detection of assert __ctfe in the function...want to introduce a pragma or magic annotatation... | |||
April 08, 2020 General » Re: Request for Comment assert(__ctfe) | |||
|---|---|---|---|
| |||
...generateMixin(T)(string b)
{
assert(__ctfe);
return "auto...mixin(generateMixin!string("b"));
pragma(msg, generateMixin!string... | |||
April 07, 2020 Issues » [Issue 20670] immutable template specialization pattern matches immutable struct, strips immutable | |||
|---|---|---|---|
| |||
...struct Struct'.
// evidence:
pragma(msg, isMutable!Struct.stringof ~ " - " ~ isMutable!U.stringof);
static assert(is(U... | |||
Copyright © 1999-2021 by the D Language Foundation