December 25, 2023 General » dmd command line scripting experiments and observations | |||
|---|---|---|---|
| |||
...in order, not just the first one.
..., // delegate with no preceding matcher, is equivalent to... | |||
December 21, 2023 General » Re: D Primary Type Syntax is Essentially Implemented! | |||
|---|---|---|---|
| |||
...invalid types. Should be:
```
BasicType:
( ref Type delegate Parameters MemberFunctionAttributes? )
( ref Type function Parameters FunctionAttributes? )
``` | |||
December 20, 2023 Learn » How to set linkage? | |||
|---|---|---|---|
| |||
...linkage as part of a function pointer / delegate type: ``` void f(extern(C) void function... | |||
December 19, 2023 General » Re: D is our last hope | |||
|---|---|---|---|
| |||
A delegate will use the GC if both these conditions apply: 1. it references variables... | |||
December 17, 2023 General » Re: dmd -run speed trends | |||
|---|---|---|---|
| |||
...auto oddNumbers(T)(T[] a) {
return delegate int(int delegate(ref T) dg) {
foreach (x... | |||
December 13, 2023 General » Re: Puzzled | |||
|---|---|---|---|
| |||
...delegate` (and not a function pointer). This allows us to call `bletch` through this delegate... | |||
December 12, 2023 Learn » Re: opApply seems like it can infer delegate types AND parameters!? | |||
|---|---|---|---|
| |||
Truly bizarre. I can't think of any explanation other than a compiler bug. Probably... | |||
December 11, 2023 Learn » Re: opApply seems like it can infer delegate types AND parameters!? | |||
|---|---|---|---|
| |||
...of implementing a function `opApply(scope int delegate(...))`, write a function template **`opApplyImpl(DG)(scope... | |||
December 11, 2023 Learn » opApply seems like it can infer delegate types AND parameters!? | |||
|---|---|---|---|
| |||
...opApplyImpl(int delegate(byte, ref double)) opApplyImpl(int delegate(ref double)) opApplyImpl(int delegate(byte... | |||
December 11, 2023 General » Re: Bring back foreach int indexes | |||
|---|---|---|---|
| |||
...result;
}
return 0;
}
alias opApply = opApplyImpl!(int delegate(T, ref U));
}
assert(array.length < T... | |||
Copyright © 1999-2021 by the D Language Foundation