Search

March 22, 2021
Issues »
...int i;
    Bar bar;
    this(int i)
    {
        this.i = i;
        this.bar = new Bar({ return...
March 21, 2021
Issues »
...return "bar"; }
int bar;
pragma(msg, typeof(mixin(foo())));
----------------------------------------

=(CTFE)=>  pragma(msg, typeof(mixin("bar...
March 19, 2021
Announce »
...of a lambda variable like this:

     auto bar = () @trusted {
       // ...
     };

     We use a static member function...
March 19, 2021
Learn »
...alias b = bar!"str1"; // type of b is bar!"str1"
alias c = bar!"str2"; // typo...
March 18, 2021
General »
...example for some kind of tuple
```
struct Bar(T...) { T val; }

template Foo(T...)
{
    enum...
March 17, 2021
Issues »
...bar(T)
{
        void bar(auto ref T item)
        {
        }
}

void main()
{
    int a;
    bar(2);
    bar...
March 16, 2021
Issues »
...double, short), short)));
static assert(__traits(compiles, bar!(Pair!(double, short), short)));

and

static assert...
March 16, 2021
General »
...C, I would not worry about the bar being that high.

But currently D is...
March 16, 2021
Issues »
...Bar) [0x105f736c4]
??:? void std.stdio.File.writefln!(char, foo.Bar).writefln(const(char[]),
foo.Bar...
March 14, 2021
General »
...a class to a struct too

	immutable bar = new class { int a; }.toStruct;

That is...
86 87 88 89 90 91 92 93 94 95 96 97
Next ›   Last »