October 25, 2022 Issues » [Issue 2753] Cannot declare pointer to function returning ref | |||
|---|---|---|---|
| |||
...DG : ref int delegate())(DG dg) { }
alias h = fImpl!(ref int delegate() @safe);
```
――― End... | |||
October 24, 2022 Learn » Re: Supporting foreach (k, v; T.init) for a user-defined (container) type | |||
|---|---|---|---|
| |||
...1,
"b": 2,
];
}
int opApply(scope int delegate(string a, int b) dg) {
foreach (k... | |||
October 15, 2022 Issues » [Issue 23416] Difference DMD/GDC: Error: non-constant expression `& foo` | |||
|---|---|---|---|
| |||
...foo).funcptr;
}
auto fun () // invocation helper
{
void delegate () dg;
dg.ptr = &this;
dg.funcptr = fp... | |||
October 14, 2022 Learn » Generate a pointer to a method of a struct | |||
|---|---|---|---|
| |||
...occur inside the struct they represent a delegate and not a function pointer. Is it... | |||
October 08, 2022 Issues » [Issue 23398] New: compilers dinterpret.d has array bounds error when running CTFE | |||
|---|---|---|---|
| |||
...int dmd.declaration.TupleDeclaration.foreachVar(scope int delegate(dmd.dsymbol.Dsymbol)) [0x564720891345] src/dmd/dinterpret... | |||
October 07, 2022 General » Re: Segmentation fault in DMD - how to debug? | |||
|---|---|---|---|
| |||
...int dmd.declaration.TupleDeclaration.foreachVar(scope int delegate(dmd.dsymbol.Dsymbol)) [0x564720891345] src/dmd/dinterpret... | |||
October 06, 2022 Learn » Re: Replacing tango.text.Ascii.isearch | |||
|---|---|---|---|
| |||
...string text;
string needle;
void test(bool delegate(string haystack) dg)
{
auto sw = StopWatch(AutoStart... | |||
October 01, 2022 Learn » Re: What are best practices around toString? | |||
|---|---|---|---|
| |||
...scope const @safe
if(is(DG : void delegate(scope const(char[])) @safe)
|| is(DG : void... | |||
September 30, 2022 Learn » What are best practices around toString? | |||
|---|---|---|---|
| |||
...std/typecons.d: void toString()(scope void delegate(const(char)[]) sink, scope const ref FormatSpec... | |||
September 29, 2022 Issues » [Issue 16321] ICE with delegate in UDA | |||
|---|---|---|---|
| |||
...nl> ---
Reduced a bit:
```
struct NameAttribute
{
int delegate() foo;
}
static NameAttribute getNamedAttribute(alias S)()
{
return... | |||
Copyright © 1999-2021 by the D Language Foundation