On Friday, 25 January 2019 at 19:34:02 UTC, Sebastien Alaiwan
wrote:
On Saturday, 19 January 2019 at 09:24:21 UTC, Kagamin wrote:
On Friday, 18 January 2019 at 18:48:46 UTC, Jonathan M Davis
wrote:
Yes, but some D features will use the GC
They would like to allocate, but they don't know nor care
where it's allocated from, if the developer uses custom memory
management, he will know how it's allocated and will be able
to manage it.
Is it possible to get the raw context pointer from a given
delegate?
If not, how to deallocate the context without garbage
collection?
You can access the context pointer of a delegate using its `.ptr`
property, but changing how it's allocated would require changes
to druntime.
Some alternatives are discussed in this thread:
https://forum.dlang.org/thread/mgbdrhcudlhsadnwz...@forum.dlang.org