delegate issue

Timon Gehr via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 2 07:33:29 PDT 2014


On 06/02/2014 04:30 PM, captaindet wrote:
>>>
>>
>> This doesn't work, because a delegate needs a context it can capture,
>> which is available only inside of a function.
>
> so the real explanation is that a module as such has no context. much of
> the module design has the look and feel as if it were some sort of
> object, so this is a bit of a surprise to me. well, i learned something.
>
> thanks,
>
> det

The real explanation is that this doesn't work just because it doesn't 
work and it might/should work at some point in the future.


More information about the Digitalmars-d-learn mailing list