January 16, 2024 Learn » Re: Nested delegates and closure allocations | |||
|---|---|---|---|
| |||
...in the case I *do* have a delegate I want to pass elsewhere, and `scope... | |||
January 16, 2024 General » Re: The forked elephant in the room | |||
|---|---|---|---|
| |||
...Walter included, would have been to simply delegate that specific judgement to Timon: yes, we... | |||
January 16, 2024 General » Re: The forked elephant in the room | |||
|---|---|---|---|
| |||
...ve seen it repeated that we should delegate, as if we aren't aware of... | |||
January 15, 2024 General » Re: Warn about using the GC | |||
|---|---|---|---|
| |||
...me, the @nogc function could store the delegate somewhere and another @nogc would then be... | |||
January 14, 2024 General » Re: Warn about using the GC | |||
|---|---|---|---|
| |||
...having a nogc function calling a gc delegate is it makes the nogc function a... | |||
January 14, 2024 General » Re: Warn about using the GC | |||
|---|---|---|---|
| |||
...void acceptDelegateWithGc(Object delegate() @trustedgc create) @nogc {
create();
}
void acceptNoGcDelegatesOnly(Object delegate() @nogc create) @nogc... | |||
January 15, 2024 General » Re: Warn about using the GC | |||
|---|---|---|---|
| |||
...a guarantee when passed into a function/delegate pointer that does not have it, will... | |||
January 14, 2024 General » Re: Warn about using the GC | |||
|---|---|---|---|
| |||
...can work fine⦠until you wrap that delegate in a struct. Then you are out... | |||
January 14, 2024 General » Re: Warn about using the GC | |||
|---|---|---|---|
| |||
...Walter's solution is to write a delegate that uses no GC but isn't... | |||
January 15, 2024 General » Re: Warn about using the GC | |||
|---|---|---|---|
| |||
...func(void delegate() @nogc del) @nogc; ``` Basically if you pass in a delegate that does... | |||
Copyright © 1999-2021 by the D Language Foundation