[Mono-dev] System.Core patch for nested Lambda Expressions

Jb Evain jb at nurv.fr
Wed May 14 07:49:31 EDT 2008


Hey Roei,

On 5/14/08, Roei Erez <roeie at mainsoft.com> wrote:
> According to MS.NET behavior, when a Lambda Expression is encountered inside
> an Expression of another Lambda Expression, it is compiled into a delegate
> and loaded as constant on the stack.
>
> These enables creating a MethodCallExpression of a method that has a
> parameter of type delegate, and pass it a Lambda Expression instead.
>
> Attached is a suggested patch with a test case for your review.

Thanks for the patch but it's not the good solution. The issue
currently lives in the fact that some Expression factory methods do
not quote nested lambda expressions when they get one as an argument.

Am working on fixing this, thanks!

-- 
Jb Evain  <jb at nurv.fr>


More information about the Mono-devel-list mailing list