March 28, 2018 Learn » Re: Static Foreach + Marking "compile time" variables | |||
|---|---|---|---|
| |||
...hasPosition)
{
assert(0, "Need to pass a position!");
}
static if (hasPosition && !hasRotate && !hasScale)
{
// Stuff
pragma... | |||
March 14, 2018 General » Re: Special Code String for mixins | |||
|---|---|---|---|
| |||
...mixin(generateFunction("pragma(inline)", "int", "add", "int a, int b", "return a + b;"));
assert(100... | |||
March 12, 2018 Issues » [Issue 18597] New: more unsafe unaligned pointer errors | |||
|---|---|---|---|
| |||
...u;
}
else static assert(false);
assert(hosts[n...ubyte filler;
Victim* p;
}
pragma(msg, Unaligned.sizeof... | |||
March 09, 2018 Learn » Build an AliasSeq from memberFunction return types | |||
|---|---|---|---|
| |||
...memberTypes ~= ReturnType!S.member; } pragma(msg, memberTypes); // prints...AliasSeq!(TL, char); static assert(is(Types == AliasSeq... | |||
March 04, 2018 Issues » [Issue 15399] unaligned pointers are not @safe | |||
|---|---|---|---|
| |||
...u;
}
else static assert(false);
assert(hosts[n...ubyte filler;
Victim* p;
}
pragma(msg, Unaligned.sizeof... | |||
February 17, 2018 Issues » [Issue 18451] [REG 2.076.1] In certain circumstances, calling remove on an array of delegates fails | |||
|---|---|---|---|
| |||
...dgs = [dg,dg,dg,dg];
//pragma(msg, isInputRange!(typeof(dgs)));
//assert(isInputRange!(typeof(dgs)));
dgs... | |||
February 11, 2018 General » Re: Workaround for https://issues.dlang.org/show_bug.cgi?id=18422? | |||
|---|---|---|---|
| |||
...import std.range : only;
assert(__ctfe);
mixin("static...moduleSys!"std.typecons".allMembers;
pragma(msg, x);
}
---
https... | |||
February 06, 2018 General » Re: Language Idea #6892: in array ops, enable mixing slices and random access ranges | |||
|---|---|---|---|
| |||
...VecOp(T)
{
T[] arr;
pragma(inline, true)
T...a.vecOp += iota(3);
assert(a == [1, 3... | |||
January 26, 2018 Issues » [Issue 18303] New: Unqual gives weird results for const types | |||
|---|---|---|---|
| |||
...struct T { }
pragma(msg, T); // const(T)
pragma(msg, Unqual!T); // T
static assert(!is... | |||
January 19, 2018 Issues » [Issue 18268] New: Inconsistent decay of array types when passed to different callables | |||
|---|---|---|---|
| |||
...pragma(msg, T1); // const(int[]) // Const array
pragma...const(int[]);
assert(fn1(T.init));
assert(fn2... | |||
Copyright © 1999-2021 by the D Language Foundation