Convert a delegate to a function (i.e. make a thunk)
David Nadlinger
see at klickverbot.at
Wed Apr 25 15:47:42 PDT 2012
On Wednesday, 25 April 2012 at 22:31:59 UTC, H. S. Teoh wrote:
> I believe
> nowadays heap memory is non-executable due to security concerns
> with
> heap overflow exploits, right? So this may require special
> treatment.
Yes; it usually boils down to allocating a dedicated page and
then setting the executable flag after you are done with setting
up your code (e.g. using VirtualAlloc/VirtualProtect on Windows).
David
More information about the Digitalmars-d
mailing list