November 07, 2021 General » C++ header generation: Mixin template to create C ABI from D class fails due to pragma(mangle) seeming not to work? | |||
|---|---|---|---|
| |||
...Automatically generated by LDC Compiler v2098 #pragma once #include <assert.h> #include <stddef.h> #include... | |||
November 04, 2021 Issues » [Issue 22480] New: Lack of template instantiation memoization for failed templates | |||
|---|---|---|---|
| |||
...uint x) {
pragma(msg, "Instantiated at ", x);
static assert(x == 0);
}
static assert(is(T... | |||
October 29, 2021 Learn » Strange multithreading error | |||
|---|---|---|---|
| |||
...the points. * Returns: * none */ pragma(inline, true) public...a = cast(ulong)time; assert(a == time || time... | |||
October 12, 2021 General » Re: Worst ideas/features in programming languages? | |||
|---|---|---|---|
| |||
...Pass().getFoo));
static assert(!__traits(compiles, Fail().getFoo));
// Can check error message
pragma(msg, hasFoo... | |||
October 01, 2021 General » [core.reflect] Detect Padding in structs or classes | |||
|---|---|---|---|
| |||
...assert(S.init.a.offsetof == 0); static assert...S", ReflectFlags.Members, sc); pragma(msg, detectPadding(node... | |||
September 27, 2021 Learn » Re: Inheriting function template from super class | |||
|---|---|---|---|
| |||
...id = __traits(identifier, T);
pragma(msg, "generating writetext for ", id);
static assert(is(T == typeof... | |||
September 27, 2021 Learn » Re: Mixin programming foreach | |||
|---|---|---|---|
| |||
...auto foo = Foo(42); assert(foo.bar == 42...Note: Visualizing the result: pragma(msg, Vector!5... | |||
September 12, 2021 General » Re: Implies operator | |||
|---|---|---|---|
| |||
...static assert(false .implies (false));
static assert(false...your global utility functions:
```
pragma(inline) pure @safe... | |||
September 11, 2021 General » Re: Fun determining the number of parameters using core reflect | |||
|---|---|---|---|
| |||
...0)); // pragma(msg, nArgs(1, 2, "trythis", 4.0, 1)); // won't compile static assert... | |||
August 30, 2021 Issues » [Issue 22254] New: Template instanted twice results in different immutable qualifier | |||
|---|---|---|---|
| |||
...struct Bar { }
pragma(msg, typeof(a).stringof);
pragma(msg, typeof(b).stringof);
static assert(is... | |||
Copyright © 1999-2021 by the D Language Foundation