Search

July 21, 2021
General »
...a;
import b;

foo(something);
bar(something);

foo and bar take different types that both...
July 21, 2021
General »
...do with nested enums:
```
struct Foo
{
    enum Bar { A, B, }

    void func () {
        assert(A == 0...
July 20, 2021
General »
...i);
void bar(Animal a);

foo(Animal.Jaguar); // OK
foo(Jaguar); // Error
bar(Jaguar); // OK...
July 19, 2021
General »
...int x) const inout {
		return x;
	}
	auto bar(int x) const {
		return x;
	}
	auto baz...
July 16, 2021
General »
...conditional atributes:

void foo()@(Pure!true){   //expand to `pure`

}

void bar()@(Pure!false){   //expand to `()`

}

```
July 13, 2021
Issues »
...explicit array literal, i.e.:

void main()
{
    bar([S.init, S.init]);
}

In that case...
July 12, 2021
Issues »
...struct bar{
        int i;
}
struct foo{
        bar i; alias i this;
}
void foobar(bar[] yo...
July 07, 2021
Learn »
...T){
        class bar{
    		T t;
        }
    }

void func(alias F : foo!T, T)(F.bar f...
July 07, 2021
Learn »
...need to repeat foo!(int).bar :)
    {
    }

    int main()
    {
            foo!(int).bar fi;//brackets added, now...
July 07, 2021
Learn »
...argument types !()(bar), candidates are:
temptest.d(10):        func(T)(foo!T.bar f)

I...
75 76 77 78 79 80 81 82 83 84 85 86
Next ›   Last »