Re: lambda code

2015-04-03 Thread Vlad Levenfeld via Digitalmars-d-learn
On Thursday, 2 April 2015 at 19:27:21 UTC, John Colvin wrote: On Wednesday, 1 April 2015 at 23:29:00 UTC, Vlad Levenfeld wrote: On Tuesday, 31 March 2015 at 13:25:47 UTC, John Colvin wrote: On Tuesday, 31 March 2015 at 12:49:36 UTC, Vlad Levenfeld wrote: Is there any way (or could there be any

Re: lambda code

2015-04-02 Thread John Colvin via Digitalmars-d-learn
On Wednesday, 1 April 2015 at 23:29:00 UTC, Vlad Levenfeld wrote: On Tuesday, 31 March 2015 at 13:25:47 UTC, John Colvin wrote: 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 expression

Re: lambda code

2015-04-01 Thread ketmar via Digitalmars-d-learn
On Tue, 31 Mar 2015 13:25:46 +, John Colvin wrote: > Short answer: no. .codeof for functions is something I've wanted for > ages, but no movement so far. 'cause `.codeof` is a can of worms. it is just a bad replace for AST macros, and having it means that internal string representation shoul

Re: lambda code

2015-04-01 Thread Vlad Levenfeld via Digitalmars-d-learn
On Tuesday, 31 March 2015 at 13:25:47 UTC, John Colvin wrote: 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

Re: lambda code

2015-03-31 Thread John Colvin via Digitalmars-d-learn
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 u

lambda code

2015-03-31 Thread Vlad Levenfeld via Digitalmars-d-learn
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 h