October 11, 2020 General » Re: Type functions with std.algorithm | |||
|---|---|---|---|
| |||
...void;
}
pragma(msg, is(ElementType!(__type[]) == void));
pragma...out to avoid deps
{
assert(a.length, "Attempting... | |||
October 09, 2020 Learn » Re: Is there a way to force emitting of stack frame for a specific function? | |||
|---|---|---|---|
| |||
...stdio;
void do_assert() { assert(false); }
void stackFrame()
{
//pragma(inline, false);
do_assert();
}
void main... | |||
October 08, 2020 General » Re: TypeFunction example: ImplictConvTargets | |||
|---|---|---|---|
| |||
...alias;
type TaliasInit()
{
type x;
assert(!is(x));
return x;
}
pragma(msg, TaliasInit()); // prints ∅... | |||
October 08, 2020 General » TypeFunction example: filtering types | |||
|---|---|---|---|
| |||
...static assert(equal!((type a, type b) => is(a == b)) (size4, makeTypeArray(int, uint))); pragma... | |||
October 07, 2020 General » Re: is(x = module) vs. __traits(isModule, x) | |||
|---|---|---|---|
| |||
...PKG == package))
static assert(0); // NOT TRIGGERED!
```
Yet:
// this prints "package wtf"
pragma(msg, __traits... | |||
October 05, 2020 General » TypeFunction example: ImplictConvTargets | |||
|---|---|---|---|
| |||
...length = basic_types.length;
assert(isBasicType(T), "You...including whitespace and comments
pragma(msg, convTargets(long... | |||
October 02, 2020 General » Showing TypeFunction style | |||
|---|---|---|---|
| |||
...length = basic_types.length;
assert(isBasicType(T), "You...0 .. n], n, T);
}
pragma(msg, convTargets(Long... | |||
October 01, 2020 General » Re: TypeFunction example creatiing a conversion matrix | |||
|---|---|---|---|
| |||
...return result[];
}
} else static assert(0, "mistake in...MyTypeInfoImpl_Class!T;
else {
//pragma(msg, "generic " ~ T... | |||
September 20, 2020 General » Re: give static assert the pragma(msg,...) changes | |||
|---|---|---|---|
| |||
On Fri, Sep 18, 2020 at 8:05 PM Nicholas Wilson via Digitalmars-d < digitalmars... | |||
September 18, 2020 General » Re: give static assert the pragma(msg,...) changes | |||
|---|---|---|---|
| |||
Haha. Heres an initial implementation for you: https://github.com/dlang/dmd/pull/11757 | |||
Copyright © 1999-2021 by the D Language Foundation