December 03, 2015 [Issue 15370] Some way to manually allocate the closure for delegates to nested functions. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15370 Ketmar Dark <ketmar@ketmar.no-ip.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ketmar@ketmar.no-ip.org -- |
January 09, 2022 [Issue 15370] Some way to manually allocate the closure for delegates to nested functions. | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=15370 Mathias LANG <pro.mathias.lang@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |pro.mathias.lang@gmail.com Resolution|--- |INVALID --- Comment #1 from Mathias LANG <pro.mathias.lang@gmail.com> --- You can manually allocate a closure by using a struct. You allocate the struct, and return it, its `opCall`, or any other member function. As for using allocators - I think we're still far from that. Anything of that magnitude would need to come in the form of a DIP - there's just too much implication to fully capture it here. Since it's possible to manually allocate, closing this as INVALID. -- |
Copyright © 1999-2021 by the D Language Foundation