Search

January 12, 2024
General »
...view

```d
int opApply(@called scope int delegate() dg)b{ ... }
```

As syntactic sugar for:

```d...
January 12, 2024
General »
...d
void opApply[functionAttribute a](scope int delegate()a dg)a{
    ....
}
```

Done. Here, everything in...
January 12, 2024
General »
...void delegate() @safe @nogc del) @safe @nogc {
	del();
}
```

If we pass in ``@nogc`` delegate, it...
January 11, 2024
Learn »
In retrospect, that delegate version is probably quite a bit better.
January 11, 2024
General »
...the tasks, refine the vision, and then delegate the tasks to the corresponding personnel`!

Instead...
January 11, 2024
Learn »
...toString(a);`.
I don't use the delegate version personally, but if that's already...
January 09, 2024
General »
...the kernel. But he knows how to delegate -- he has not a small number of...
January 07, 2024
Learn »
...template StructToString(S)
{
    void toString(scope void delegate(const(char)[]) sink,
        FormatSpec!char fmt)
    {
        put...
January 05, 2024
Learn »
...function pointer (or delegate).


[...]

The argument is taken to be a delegate to be bound...
January 05, 2024
Learn »
...main()
{
	int r = uniform(0,100);

	int delegate(int)[] funcs = [
		x => x * 2,
		x => x...
17 18 19 20 21 22 23 24 25 26 27 28
Next ›   Last »