Manually allocate delegate?

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 12 04:42:09 PDT 2015


On Sun, 12 Jul 2015 09:03:24 +0000, Tofu Ninja wrote:

> On Sunday, 12 July 2015 at 08:47:37 UTC, ketmar wrote:
>> On Sun, 12 Jul 2015 08:38:00 +0000, Tofu Ninja wrote:
>>
>>> Is it even possible?
>>
>> what do you mean?
> 
> Sorry, thought the title was enough.
> 
> The context for a delegate(assuming not a method delegate) is allocated
> by the GC. Is there any way to allocate the context manually.

nope. there is no way to overload context allocation function, afaik. at 
least without patching druntime, and i still don't know what one have to 
patch. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150712/a2ee8b62/attachment.sig>


More information about the Digitalmars-d-learn mailing list