February 01, 2019 Learn » Re: How can I express the type of a function in D? | |||
|---|---|---|---|
| |||
...i, int j); static assert(is(typeof(add...Weirdly enough, if you pragma(msg) a function... | |||
January 05, 2019 Issues » [Issue 19551] New: corrupt ELF library when using pragma(crt_constructor) | |||
|---|---|---|---|
| |||
...ELF library when using pragma(crt_constructor)
Product...import lib18456;
void main()
{
assert(initVar == 42);
}
via... | |||
January 03, 2019 Learn » Re: What's wrong with this template function? | |||
|---|---|---|---|
| |||
...T, field);
> }
> else
> {
> pragma(msg, "no");
> }
> }
> import std.string : format;
> static assert(0,
> format!"no... | |||
January 03, 2019 Learn » What's wrong with this template function? | |||
|---|---|---|---|
| |||
...T, field);
}
else
{
pragma(msg, "no");
}
}
import std.string : format;
static assert(0,
format!"no... | |||
January 03, 2019 Issues » [Issue 19545] New: __traits(compiles, X) false positive, further uses of X succeed but don't link | |||
|---|---|---|---|
| |||
...std.regex;
void main()
{
//pragma(msg, __traits(compiles...d(2023): Error:
static assert: "Cannot move front... | |||
December 14, 2018 Issues » [Issue 16652] [Reg 2.071] returned rvalue destroyed too early | |||
|---|---|---|---|
| |||
...pragma(inline, false);
buf = 0;
}
ubyte buf;
}
void bar(ubyte* v) {
pragma(inline, true);
assert... | |||
December 08, 2018 General » Re: newCTFE Status November 2018 | |||
|---|---|---|---|
| |||
...some stdlib math tests assert when cross-compiling...with ldc, `void main() { pragma(msg, "precision is... | |||
December 06, 2018 General » Re: The state of string interpolation | |||
|---|---|---|---|
| |||
...enum z = myTpl!"blah"; pragma(msg, z); // prints...if with a static assert that says "symbol... | |||
November 28, 2018 Issues » [Issue 19371] Taking address of ref return in @safe code: compile-time checks fail | |||
|---|---|---|---|
| |||
...from comment #5) Adding -dip1000, the pragma line does error, but the static assert passes. -- | |||
November 28, 2018 Issues » [Issue 19442] New: Issues with multiple argument string mixin | |||
|---|---|---|---|
| |||
...message:
enum x1 = 1;
pragma(msg, mixin('x...0], args[1], "`");
static assert(ctText!(5, " bottles... | |||
Copyright © 1999-2021 by the D Language Foundation