How Nested Functions Work, part 1

Nick Sabalausky a at a.a
Wed Sep 2 13:38:11 PDT 2009


"Jarrett Billingsley" <jarrett.billingsley at gmail.com> wrote in message 
news:mailman.30.1251909028.20261.digitalmars-d at puremagic.com...
>
>I'd really, really like to replace your entire module with this:
>
>Ret delegate(Args) toDg(T: Ret function(Args), Ret, Args...)(T func)
>{
>[snip]
>}
>
>But I can't. :C

Yea. But even then, while the API creator can just use "delegate" and be 
done with it, the user still has to actually care if they're trying to pass 
in a function or a delegate. Which just goes back to my earlier point that 
"I don't *want* to care whether or not my...whatever the hell it is...is 
carrying around a context!" 





More information about the Digitalmars-d mailing list