November 25, 2023 Learn » Re: interface opEquals | |||
|---|---|---|---|
| |||
...try and override it as well, and delegate to your overload that deals directly with... | |||
November 23, 2023 Issues » [Issue 24256] New: `-preview=in` should allow array literals and delegate literals in a `@nogc` context | |||
|---|---|---|---|
| |||
...preview=in` should allow array literals and delegate
literals in a `@nogc` context
Product: D... | |||
November 22, 2023 Learn » Doubt about type Inference on templates | |||
|---|---|---|---|
| |||
...bool delegate(S item) predicate)` iterable.d(23,13): `filter(S)(S[] source, bool delegate... | |||
November 21, 2023 Learn » Re: What is :-) ? | |||
|---|---|---|---|
| |||
...createCounter(int nextValue) => delegate () => nextValue++ ; ``` Explicit return must be specified after "delegate" keyword ```d auto... | |||
November 20, 2023 Learn » Re: What is :-) ? | |||
|---|---|---|---|
| |||
...a delegate, as it doesn't close over any variables. It returns a delegate as... | |||
November 20, 2023 Learn » Re: What is :-) ? | |||
|---|---|---|---|
| |||
...put the `delegate` keyword in front of the function literal: ```d auto createCounter = delegate (int... | |||
November 20, 2023 Learn » Re: What is :-) ? | |||
|---|---|---|---|
| |||
...a function returning a delegate auto createCounter(int nextValue) => auto delegate() => nextValue++; // this is a... | |||
November 20, 2023 Learn » Re: What is :-) ? | |||
|---|---|---|---|
| |||
...is a delegate: ``` 'typeof(createCounter).string' is int delegate() pure nothrow @nogc @safe delegate(int... | |||
November 20, 2023 Learn » Re: What is :-) ? | |||
|---|---|---|---|
| |||
...msg, typeof(Counter)); // pure nothrow @safe int delegate() pure nothrow @nogc @safe(int nextValue) enum... | |||
November 20, 2023 Learn » Re: What is :-) ? | |||
|---|---|---|---|
| |||
...the signature of next: ``` 'next' is int delegate() pure nothrow @nogc @safe ``` second writeln shows... | |||
Copyright © 1999-2021 by the D Language Foundation