Search

October 24
Learn »
...size_t count;
  static index = i;
}

void main()
{
  enum Animal { dog = 3, cow, fox, cat...
October 23
Issues »
...T = int)(T a = T.init)
{
}

void main()
{
    foo();
    foo("x");
}


But if there's...
October 23
Learn »
...alias myType = Numbers; // Test; // not works!
void main()
{
  alias myAlias = MyStruct!myType;

  auto rng = [EnumMembers...
October 23
Issues »
...T.init); // Error: undefined identifier `T`

void main()
{
    foo(0);
    foo("x");
    foo();
}

?

It works...
October 23
Learn »
...struct MyStruct {
    Test test = Test.Three;
}

void main() {
    auto myStruct = MyStruct();

    // this works as expected...
October 23
Issues »
...void foo(T)(T x = 3) {}

void main()
{
    foo("a");
}
```

This gives an error "foo...
October 23
Issues »
...void foo(T)(T v = 0)
{
}

void main()
{
    foo(); // ok
    foo(1); // ok
    foo("x...
October 23
Issues »
...exposes this issue, an example being

---
void main()
{
    import std.algorithm.searching : maxElement;
    auto arr...
October 22
Learn »
...void a(basic_string!char a);
    }

    main.d
    --
    void main()
    {
    	 import s;
      import core.stdcpp...
October 22
Genel »
...geleceği olasılıkları görmek için unittest'i `void main()`'e çevirip `version = print` satırını açarsınız.
```d...
8 9 10 11 12 13 14 15 16 17 18 19
Next ›   Last »