lambda code

Vlad Levenfeld via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Mar 31 05:49:35 PDT 2015


Is there any way (or could there be any way, in the future) of 
getting the code from lambda expressions as a string?

I've noticed that if I have an error with a lambda that looks 
like, say
   x=>x+a

the error message will come up referring to it as
   (x) => x + a

so some level of processing has already been done on the 
expression. Can I get at any of it during compilation? It would 
be useful for automatic program rewriting.


More information about the Digitalmars-d-learn mailing list