Search

August 29, 2018
Issues »
...false
    pragma(msg, typeof(a)); // bool

    // Fine:
    // Error: static assert: b is false
    static assert...
August 17, 2018
Issues »
...d(142): Error: static assert:  "unsupported system"

This...version (X86)
        extern (C) pragma(mangle, "clock$UNIX2003...
August 06, 2018
Issues »
...static assert(!isInt!item); // failure all the way back to 2.060
    }
}

The pragma prints...
August 06, 2018
Issues »
...traits(getMember, file1, "std")));
pragma(msg, __traits(getProtection, file1.std));
static assert( __traits(isSame, __traits...
July 07, 2018
Learn »
Throw in a pragma here:

  void process(T...args[$-1]);
        else
            static assert(false);
    }

Another option...
July 05, 2018
Issues »
...read(dst, IOMode.all);
assert(n == dst.length...member; __traits(allMembers, ConnectionStream))
{
    pragma(msg, __traits(getOverloads...
July 05, 2018
Learn »
...1337; }
    template Temp(T)
    {
        //pragma(msg, typeof(T...Temp!(typeof(&fun))(&fun);
       assert(i == 1337);
    }

So...
July 05, 2018
Learn »
...T)(T i)
    {
        static assert(is(typeof(return) == T)); //true
        pragma(msg, is(T == return...
July 01, 2018
Learn »
...args)
    {
        static assert(T.length <= 3);

        static assert(is(T[0] == int)); // 1

        pragma(msg...
June 13, 2018
General »
...U!0;
    }
    else
    {
        static assert(0);
    }
}

class S(int n) { }

pragma(msg, X!(S!3...
19 20 21 22 23 24 25 26 27 28 29 30
Next ›   Last »