lambda code
John Colvin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Mar 31 06:25:46 PDT 2015
On Tuesday, 31 March 2015 at 12:49:36 UTC, Vlad Levenfeld wrote:
> 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.
Short answer: no. .codeof for functions is something I've wanted
for ages, but no movement so far.
More information about the Digitalmars-d-learn
mailing list