September 11, 2017 General » Re: __traits(compileError, {}) | |||
|---|---|---|---|
| |||
...remember that you do already have static assert, pragma(msg, ...), and __traits(compiles, ...) to work... | |||
August 03, 2017 Issues » [Issue 17716] wrong result of IsExpression when not in static assert | |||
|---|---|---|---|
| |||
...int* bar; }
pragma(msg, is(shared S : S)); /* "true" - wrong */
void f()
{
pragma(msg, is... | |||
August 03, 2017 Issues » [Issue 17716] New: wrong result of IsExpression when not in static assert | |||
|---|---|---|---|
| |||
...S))
{
static assert(false); /* is triggered */
}
----
The `static assert` is correct.
The `pragma(msg, ...);` should... | |||
July 28, 2017 General » Re: newCTFE Status July 2017 | |||
|---|---|---|---|
| |||
...would return strange values.
pragma(msg, swap(0xABCD...tmp5, BCValue(Imm32(63)));
Assert(tmp3, Imm32(1... | |||
July 26, 2017 General » Re: all OS functions should be "nothrow @trusted @nogc" | |||
|---|---|---|---|
| |||
Hm.. so you mean:
pragma(mangle, "fgetc")
private...trusted
{
if(stream == null) assert(0);
return real... | |||
July 14, 2017 General » Re: proposed @noreturn attribute | |||
|---|---|---|---|
| |||
...class Penguin : Bird { override void fly() @pragma(noreturn) { assert(0); } };
class EvolvedPenguin : Penguin { override void... | |||
July 09, 2017 Issues » [Issue 17627] New: assert output in ctfe is irritating | |||
|---|---|---|---|
| |||
...Issue ID: 17627
Summary: assert output in ctfe...no other possibility as pragma(msg, ...) and writeln... | |||
July 08, 2017 Learn » Re: CTFE output is kind of weired | |||
|---|---|---|---|
| |||
...Pany wrote: > I use assert(false, tmp) to...more natural way is pragma(msg), which you... | |||
July 08, 2017 General » proposed @noreturn attribute | |||
|---|---|---|---|
| |||
...a pragma to do it:
void ThisFunctionExits();
#pragma...up in things like assert's and enforce... | |||
July 06, 2017 Learn » AutoDLL | |||
|---|---|---|---|
| |||
...import core.stdc.stdio; //pragma(lib, "portaudio_x86...a) == T)) return a; } assert(0, "attribute " ~ T... | |||
Copyright © 1999-2021 by the D Language Foundation