Search

April 09, 2021
General »
...it aware of the context:

long foo = bar.

If auto completion is triggered at the...
April 08, 2021
Issues »
...a; int b; }

 void foo() {
    S[] s;
    if (s[$-1] == S.init) {}
 }

 void bar() { foo(); }

--
April 07, 2021
Issues »
...that using raw functions:

char bar(ubyte[] array);
int bar(ubyte[16] array);

is also...
April 07, 2021
Issues »
...create temp variable à-la

auto tmp = arr[];
bar(tmp);

then correct overload is used

--
April 07, 2021
Issues »
...arr[].bar));

        arr[].bar.writeln; // 123
}

char bar()(in ubyte[] arr)
{
        return 'X';
}

int bar...
April 06, 2021
Issues »
...bar(int x) { }

void main () {
    A a = new A;
    a ~= bar (1); // OK
    a = bar...
April 05, 2021
Learn »
...If you don't want to modify `bar`, then it looks like this:

```D
import...
April 05, 2021
Issues »
...void bar(int x) { }

void main () {
    A a;
    a ~= bar (1); // OK
    a = bar (1...
April 05, 2021
Learn »
...ec;

   ec.opOpAssign!"+" (bar (1)); // okay
   ec += bar (1); // okay
   ec ~= bar (1); // okay

   ec...
April 04, 2021
Learn »
...Exception { this (string s) { super (s); } }
auto bar (int i) {
    return () {
    	if (i == 1)
            throw...
83 84 85 86 87 88 89 90 91 92 93 94
Next ›   Last »