<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>dlr Discussions Rss Feed</title><link>http://www.codeplex.com/dlr/Thread/List.aspx</link><description>dlr Discussions Rss Description</description><item><title>New Post: writing an expression to disk</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=75885</link><description>&lt;div style="line-height: normal;"&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;The only support we have is if you have a LambdaExpr, and you
pass a MethodBuilder to Compile.  It is up to the caller to create the
assembly, save it to disk, etc.  IronPython does this if you want to see how
they use it.&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;Bill&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;div&gt;

&lt;div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"&gt;

&lt;p class=MsoNormal style="margin-left:.5in"&gt;&lt;b&gt;&lt;span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"&gt; CodeMoniker
[mailto:notifications@codeplex.com] &lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Sunday, November 22, 2009 2:06 PM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Bill Chiles&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; writing an expression to disk [dlr:75885]&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p class=MsoNormal style="margin-left:.5in"&gt; &lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;From:
CodeMoniker&lt;/span&gt;&lt;/p&gt;

&lt;div style="margin-bottom:24.0pt" id=ThreadNotificationPostBody&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;Is
it possible to write a Microsoft.Scripting.Ast.Expression to disk as IL code so
that it can be executed later? It is actually an ExpressionBlock, but I could
change this if need be.&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;I
found this post:&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;http://dlr.codeplex.com/Thread/View.aspx?ThreadId=48559&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;This
involved &lt;/span&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;ScriptCode.SaveToAssembly&lt;/span&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;. I couldn't figure out how to get that to
work with just an Expression.&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;thanks
in advance&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div style="border:none;border-top:solid #CCCCCC 1.0pt;padding:0in 0in 0in 0in" id=ThreadNotificationFooter&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;Read the &lt;a href="http://dlr.codeplex.com/Thread/View.aspx?ThreadId=75885&amp;ANCHOR#Post259639"&gt;full
discussion online&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;To add a post to this discussion, reply to this email (&lt;a href="mailto:dlr@discussions.codeplex.com?subject=[dlr:75885]"&gt;dlr@discussions.codeplex.com&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;To start a new discussion for this project, email &lt;a href="mailto:dlr@discussions.codeplex.com"&gt;dlr@discussions.codeplex.com&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;You are receiving this email because you subscribed to this
discussion on CodePlex. You can &lt;a href="https://dlr.codeplex.com/subscriptions/thread/project/edit"&gt;unsubscribe
or change your settings&lt;/a&gt; on codePlex.com.&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;Please note: Images and attachments will be removed from emails.
Any posts to this discussion will also be available online at codeplex.com&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;</description><author>billchi</author><pubDate>Sun, 22 Nov 2009 22:09:08 GMT</pubDate><guid isPermaLink="false">New Post: writing an expression to disk 20091122100908P</guid></item><item><title>New Post: writing an expression to disk</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=75885</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Is it possible to write a Microsoft.Scripting.Ast.Expression to disk as IL code so that it can be executed later? It is actually an ExpressionBlock, but I could change this if need be.&lt;/p&gt;
&lt;p&gt;I found this post:&lt;/p&gt;
&lt;p&gt;http://dlr.codeplex.com/Thread/View.aspx?ThreadId=48559&lt;/p&gt;
&lt;p&gt;This involved &lt;span style="font-size:11pt;font-family:'Calibri','sans-serif';color:#1f497d"&gt; ScriptCode.SaveToAssembly&lt;/span&gt;. I couldn't figure out how to get that to work with just an Expression.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks in advance&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>CodeMoniker</author><pubDate>Sun, 22 Nov 2009 22:06:08 GMT</pubDate><guid isPermaLink="false">New Post: writing an expression to disk 20091122100608P</guid></item><item><title>New Post: Cannot compile with WPF</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=75788</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As soon as adding a new WPF project to the solution of DLR i am geeting alot of errors&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;1&amp;nbsp;Friend access was granted to 'System.Core, PublicKey=00000000000000000400000000000000', but the output assembly is named 'System.Core, Version=0.9.6.20, Culture=neutral, PublicKeyToken=null'. Try adding a reference to 'System.Core, PublicKey=00000000000000000400000000000000' or changing the output assembly name to match.&lt;/p&gt;
&lt;p&gt;Error&amp;nbsp;2&amp;nbsp;Warning as Error: The predefined type 'System.Linq.Expressions.ElementInit' is defined in multiple assemblies in the global alias; using definition from 'C:\DLR-0.92-Src\Codeplex-DLR-0.92\Src\Runtime\Microsoft.Scripting.Core\Ast\ElementInit.cs'&lt;br&gt;&lt;br&gt;I am using VS.NET 2010 Beta2&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;&lt;/div&gt;</description><author>tomix1980</author><pubDate>Sat, 21 Nov 2009 07:49:49 GMT</pubDate><guid isPermaLink="false">New Post: Cannot compile with WPF 20091121074949A</guid></item><item><title>New Post: Invoke Exception in Mono</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=75591</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;The visibility of the class is public&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the visibility of the FunctionDelegate Property is private &amp;nbsp; &amp;nbsp;{But I tested it with public visibility and it was the same error} (in fact it is running under .net framework without errors but not in Mono )&lt;/p&gt;
&lt;p&gt;here is a snippet of the code&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;    &lt;span style="color:Blue"&gt;internal&lt;/span&gt; System.Delegate _FunctionDelegate;

        &lt;span style="color:Blue"&gt;private&lt;/span&gt; Func&amp;lt;QsValue&amp;gt; FunctionDelegate_0
        {
            &lt;span style="color:Blue"&gt;get&lt;/span&gt;
            {
                &lt;span style="color:Blue"&gt;return&lt;/span&gt; (Func&amp;lt;QsValue&amp;gt;)_FunctionDelegate;
            }
        }

        &lt;span style="color:Blue"&gt;private&lt;/span&gt; Func&amp;lt;QsParameter, QsValue&amp;gt; FunctionDelegate_1
        {
            &lt;span style="color:Blue"&gt;get&lt;/span&gt;
            {
                &lt;span style="color:Blue"&gt;return&lt;/span&gt; (Func&amp;lt;QsParameter, QsValue&amp;gt;)_FunctionDelegate;
            }
        }

&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>ibluesun</author><pubDate>Thu, 19 Nov 2009 19:08:36 GMT</pubDate><guid isPermaLink="false">New Post: Invoke Exception in Mono 20091119070836P</guid></item><item><title>New Post: Invoke Exception in Mono</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=75591</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;What is the visibility of the property Qs.Runtime.QsFunction:FunctionDelegate? Is the getter&amp;nbsp;public? Is QsFunction class public?&lt;/p&gt;&lt;/div&gt;</description><author>TomasMatousek</author><pubDate>Thu, 19 Nov 2009 18:06:19 GMT</pubDate><guid isPermaLink="false">New Post: Invoke Exception in Mono 20091119060619P</guid></item><item><title>New Post: Invoke Exception in Mono</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=75591</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;in my QuantitySystem project&lt;/p&gt;
&lt;p&gt;I have a strange exception when evaluating expression in Mono (which I really I don't know if it is related to the DLR or the mono implementation) :(&lt;/p&gt;
&lt;p&gt;Exception:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff0000"&gt;MethodAccessException: Method `Qs.Runtime.QsFunction:get_FunctionDelegate_1 ()' is inaccessible from method `(wrapper dynamic-method) object:lambda_method (System.Runtime.CompilerServices.Closure)'&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;this happens when I make a call to evaluated function&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;Qs&amp;gt; f(x) = x^2
Qs&amp;gt; f(8)


&lt;/pre&gt;
&lt;p&gt;The corresponding expression from the debug view when evaluating f(8) is:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;.&lt;span style="color:#00ff00"&gt;Invoke (.Constant&lt;/span&gt;&lt;span style="color:#00ff00"&gt;(f(x) = x^2).FunctionDelegate_1)&lt;/span&gt;(.Try {
        .Call Qs.Runtime.QsParameter.MakeParameter(
            .Constant(DimensionlessQuantity: 8 &amp;lt;1&amp;gt;),
            &amp;quot;8&amp;quot;)
    } .Catch (System.Exception) {
        .Call Qs.Runtime.QsParameter.MakeParameter(
            null,
            &amp;quot;8&amp;quot;)
    })&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;span style="font-family:'Segoe UI', 'Microsoft Sans Serif', Arial, Geneva, sans-serif"&gt;&lt;span style="white-space:normal"&gt;&lt;span style="font-family:Consolas, 'Courier New', Courier, monospace"&gt;&lt;span style="white-space:pre"&gt;&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;I am storing the function expression and delegate in a QsFunction object and specify the required delegate (which is called by property) by the parameter numbers (this corresponds to .FunctionDelegate_1, _2, ..., _12 &amp;nbsp;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;however If I made a sequence call (which is another conceptual object)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;Qs&amp;gt; S[x] ..&amp;gt; x^2
Qs&amp;gt; S[8]&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;no error occur and the expression debug of S[8] is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;Sequence Call:
.&lt;span style="color:#00ff00"&gt;Call (.Call Qs.Runtime.QsSequence.GetSequence&lt;/span&gt;(
    .Constant(Microsoft.Scripting.Runtime.Scope),
    &amp;quot;&amp;quot;,
    &amp;quot;f%1#0&amp;quot;)).GetElementValue(8)
&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I figured out that the expression calls are different.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but I don't know if this is related to Mono or DLR&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Ahmed Sadek&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;QsException: Unhandled&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;
&lt;p&gt;MethodAccessException: Method `Qs.Runtime.QsFunction:get_FunctionDelegate_1 ()' is inaccessible from method `(wrapper dynamic-method) object:lambda_method (System.Runtime.CompilerServices.Closure)'QsException: Unhandled&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;MethodAccessException: Method `Qs.Runtime.QsFunction:get_FunctionDelegate_1 ()' is inaccessible from method `(wrapper dynamic-method) object:lambda_method (System.Runtime.CompilerServices.Closure)'&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>ibluesun</author><pubDate>Thu, 19 Nov 2009 12:45:02 GMT</pubDate><guid isPermaLink="false">New Post: Invoke Exception in Mono 20091119124502P</guid></item><item><title>New Post: ForExpression</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=75505</link><description>&lt;div style="line-height: normal;"&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;It will be a while before we add higher-level, reducible nodes
for the loop constructs we planned.  There might be an example of ForExpr in
the ET spec on the codeplex site.  Sorry for the teaser, but it will be quite a
while before we add these nice to haves.&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;Cheers,&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;Bill&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;div&gt;

&lt;div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"&gt;

&lt;p class=MsoNormal style="margin-left:.5in"&gt;&lt;b&gt;&lt;span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"&gt; CodeMoniker
[mailto:notifications@codeplex.com] &lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Wednesday, November 18, 2009 9:53 AM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Bill Chiles&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; ForExpression [dlr:75505]&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p class=MsoNormal style="margin-left:.5in"&gt; &lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;From:
CodeMoniker&lt;/span&gt;&lt;/p&gt;

&lt;div style="margin-bottom:24.0pt" id=ThreadNotificationPostBody&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;I
read in dlr-overview.doc that ForExpressions are not supported but that they
will be on codeplex eventually.&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;What
is the status on this? I just downloaded latest and didn't find anything. I
could be looking in the wrong places though.&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;thanks
for the help&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div style="border:none;border-top:solid #CCCCCC 1.0pt;padding:0in 0in 0in 0in" id=ThreadNotificationFooter&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;Read the &lt;a href="http://dlr.codeplex.com/Thread/View.aspx?ThreadId=75505&amp;ANCHOR#Post258364"&gt;full
discussion online&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;To add a post to this discussion, reply to this email (&lt;a href="mailto:dlr@discussions.codeplex.com?subject=[dlr:75505]"&gt;dlr@discussions.codeplex.com&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;To start a new discussion for this project, email &lt;a href="mailto:dlr@discussions.codeplex.com"&gt;dlr@discussions.codeplex.com&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;You are receiving this email because you subscribed to this
discussion on CodePlex. You can &lt;a href="https://dlr.codeplex.com/subscriptions/thread/project/edit"&gt;unsubscribe
or change your settings&lt;/a&gt; on codePlex.com.&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;Please note: Images and attachments will be removed from emails.
Any posts to this discussion will also be available online at codeplex.com&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;</description><author>billchi</author><pubDate>Wed, 18 Nov 2009 18:19:25 GMT</pubDate><guid isPermaLink="false">New Post: ForExpression 20091118061925P</guid></item><item><title>New Post: ForExpression</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=75505</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I read in dlr-overview.doc that ForExpressions are not supported but that they will be on codeplex eventually.&lt;/p&gt;
&lt;p&gt;What is the status on this? I just downloaded latest and didn't find anything. I could be looking in the wrong places though.&lt;/p&gt;
&lt;p&gt;thanks for the help&lt;/p&gt;&lt;/div&gt;</description><author>CodeMoniker</author><pubDate>Wed, 18 Nov 2009 17:52:50 GMT</pubDate><guid isPermaLink="false">New Post: ForExpression 20091118055250P</guid></item><item><title>New Post: Dynamic operations can only be performed in homogenous AppDomain.</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=75151</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;This was related to an app.config option, I did not spend the time to isolate the exact one.&amp;nbsp; However it's more than likely it's one that applies only to .net 4.&lt;/p&gt;&lt;/div&gt;</description><author>ktwoplex</author><pubDate>Tue, 17 Nov 2009 20:40:56 GMT</pubDate><guid isPermaLink="false">New Post: Dynamic operations can only be performed in homogenous AppDomain. 20091117084056P</guid></item><item><title>New Post: Dynamic operations can only be performed in homogenous AppDomain.</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=75151</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I'm getting this exeption in my project, I've been following dlr for a while, so this was all a-ok until the latest ctp/beta/.net4b2 2010...&lt;/p&gt;
&lt;p&gt;I built the dlr from source to get a bit more info, as the exception first occur's in system.core (A first chance exception of type 'System.InvalidOperationException' occurred in System.Core.dll), I also tried building the system.core included with the latest (I guess there will be a new build tomarrow) dlr, however it is missing several files (included at end of post);&lt;/p&gt;
&lt;p&gt;After getting a PythonEngine, I'm trying to SetVariable('name&amp;quot;, some.instance), which is where this exeption happens.&lt;/p&gt;
&lt;p&gt;System.Core.dll!System.Runtime.CompilerServices.CallSiteBinder.BindCore&amp;lt;System.Func&amp;lt;System.Runtime.CompilerServices.CallSite,object,object,object&amp;gt;&amp;gt;(System.Runtime.CompilerServices.CallSite&amp;lt;System.Func&amp;lt;System.Runtime.CompilerServices.CallSite,object,object,object&amp;gt;&amp;gt; site, object[] args) + 0x166 bytes&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;System.Core.dll!System.Dynamic.UpdateDelegates.UpdateAndExecute2&amp;lt;object,object,object&amp;gt;(System.Runtime.CompilerServices.CallSite site = {System.Runtime.CompilerServices.CallSite&amp;lt;System.Func&amp;lt;System.Runtime.CompilerServices.CallSite,object,object,object&amp;gt;&amp;gt;}, object arg0 = {Microsoft.Scripting.Runtime.Scope}, object arg1 = {SO.RTL.LocalHDB}) + 0x29b bytes&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;Microsoft.Scripting.dll!Microsoft.Scripting.Runtime.DynamicOperations.SetMember(object obj, string name, object value, bool ignoreCase) Line 216 + 0x11 bytes&amp;nbsp;C#&lt;br&gt;&amp;nbsp;&amp;nbsp;Microsoft.Scripting.dll!Microsoft.Scripting.Hosting.ObjectOperations.SetMember(object obj, string name, object value) Line 142 + 0x15 bytes&amp;nbsp;C#&lt;br&gt;&amp;nbsp;&amp;nbsp;Microsoft.Scripting.dll!Microsoft.Scripting.Hosting.ScriptScope.SetVariable(string name, object value) Line 122 + 0x1a bytes&amp;nbsp;C#&lt;/p&gt;
&lt;p&gt;I tried to find any other references, but the only place I found anything was in the source code for the DLR ;).&lt;/p&gt;
&lt;p&gt;Also, can you remove the references to System.Data, they seem unused.&amp;nbsp; Also, if possiable in the future, with your binary releases, would it make much sence to have a client profile targetted set of signed bits also?&lt;/p&gt;
&lt;p&gt;(missing system.core files);&lt;/p&gt;
&lt;p&gt;error CS1504: Source file 'C:\Users\files\Downloads\dlr-34591\DLR_Main\Src\Runtime\Microsoft.Scripting.Core\Ast\ExpressionWriter.cs' could not be opened ('Unspecified error ')&lt;br&gt;error CS1504: Source file 'C:\Users\files\Downloads\dlr-34591\DLR_Main\Src\Runtime\Microsoft.Scripting.Core\Actions\SmallRuleSet.cs' could not be opened ('Unspecified error ')&lt;br&gt;error CS1504: Source file 'C:\Users\files\Downloads\dlr-34591\DLR_Main\Src\Runtime\Microsoft.Scripting.Core\Ast\TreeComparer.cs' could not be opened ('Unspecified error ')&lt;br&gt;error CS1504: Source file 'C:\Users\files\Downloads\dlr-34591\DLR_Main\Src\Runtime\Microsoft.Scripting.Core\Actions\AutoRuleTemplate.cs' could not be opened ('Unspecified error ')&lt;br&gt;error CS1504: Source file 'C:\Users\files\Downloads\dlr-34591\DLR_Main\Src\Runtime\Microsoft.Scripting.Core\Compiler\ArgumentPrepender.cs' could not be opened ('Unspecified error ')&lt;br&gt;error CS1504: Source file 'C:\Users\files\Downloads\dlr-34591\DLR_Main\Src\Runtime\Microsoft.Scripting.Core\Utils\WeakUniqueSet.cs' could not be opened ('Unspecified error ')&lt;br&gt;error CS1504: Source file 'C:\Users\files\Downloads\dlr-34591\DLR_Main\Src\Runtime\Microsoft.Scripting.Core\Actions\CallSiteRule.cs' could not be opened ('Unspecified error ')&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Shane&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>ktwoplex</author><pubDate>Sun, 15 Nov 2009 03:52:47 GMT</pubDate><guid isPermaLink="false">New Post: Dynamic operations can only be performed in homogenous AppDomain. 20091115035247A</guid></item><item><title>New Post: Hosting interface and multiple-file source</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=74749</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;We have some basic line mapping on ScriptSource but it's missing support for multiple file debug info (it only stores a line to line mapping). Also the languages currently ignore this mapping. We should, however, fix this in future versions.&lt;/p&gt;
&lt;p&gt;Do you implement your own language? If so a workround would be to add some public method taking the mapping on your LanguageContext implementation. The host can then bypass the default source unit compilation code path -&amp;nbsp;retrieve the context from a ScriptEngine by calling HostingHelpers.GetLanguageContext and call the method&amp;nbsp;directly. If you want more clean design that also works with remoting you can implement a service (see ScriptEngine.GetService&amp;lt;T&amp;gt;).&lt;/p&gt;&lt;/div&gt;</description><author>TomasMatousek</author><pubDate>Wed, 11 Nov 2009 18:28:11 GMT</pubDate><guid isPermaLink="false">New Post: Hosting interface and multiple-file source 20091111062811P</guid></item><item><title>New Post: Hosting interface and multiple-file source</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=74749</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi, I have a situation that I have my source in multiple files (such as include files). These files are preprocessed into a single script file. In order to inject debug info, I need to pass some mapping between my source code and the merged code to my compiler. I use ScriptEngine.&lt;span style="font-size:10pt"&gt;CreateScriptSource method to pass my source code to the hosting interface. I could subclass the TextContentProvider to pass my mapping information. On the other end, I subclass LanguageContext and override the CompileSourceCode method. As far as I can see, the SourceUnit does carry the TextContentProvider. However, SourceUnit is a sealed class and only exposes the Reader of TextContentProvider through the GetReader() method. As a result, I am not able to retrieve whatever mapping information that I added to the TextContentProvider subclass. Is there a way around this problem? Thanks.&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><author>dotneteer</author><pubDate>Wed, 11 Nov 2009 06:58:09 GMT</pubDate><guid isPermaLink="false">New Post: Hosting interface and multiple-file source 20091111065809A</guid></item><item><title>New Post: GetDynamicMemberNames() doesn't provide much info</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=74111</link><description>&lt;div style="line-height: normal;"&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;I think you're right, and when C# gets a REPL, certainly looking
at doing some live intellisense (from objects in the execution environment)
would make that experience better.&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;Bill&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;div&gt;

&lt;div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"&gt;

&lt;p class=MsoNormal style="margin-left:.5in"&gt;&lt;b&gt;&lt;span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"&gt; r_keith_hill
[mailto:notifications@codeplex.com] &lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Wednesday, November 04, 2009 9:20 PM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Bill Chiles&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Re: GetDynamicMemberNames() doesn't provide much info
[dlr:74111]&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p class=MsoNormal style="margin-left:.5in"&gt; &lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;From:
r_keith_hill&lt;/span&gt;&lt;/p&gt;

&lt;div style="margin-bottom:24.0pt" id=ThreadNotificationPostBody&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;Yeah
I get the issue with expando objects.  It will be interesting to see how
the C# team can narrow the gap between the current edit-compile-debug
environment and REPL environments that are much better suited to using
dynamic types.&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div style="border:none;border-top:solid #CCCCCC 1.0pt;padding:0in 0in 0in 0in" id=ThreadNotificationFooter&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;Read the &lt;a href="http://dlr.codeplex.com/Thread/View.aspx?ThreadId=74111&amp;ANCHOR#Post253606"&gt;full
discussion online&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;To add a post to this discussion, reply to this email (&lt;a href="mailto:dlr@discussions.codeplex.com?subject=[dlr:74111]"&gt;dlr@discussions.codeplex.com&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;To start a new discussion for this project, email &lt;a href="mailto:dlr@discussions.codeplex.com"&gt;dlr@discussions.codeplex.com&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;You are receiving this email because you subscribed to this
discussion on CodePlex. You can &lt;a href="https://dlr.codeplex.com/subscriptions/thread/project/edit"&gt;unsubscribe
or change your settings&lt;/a&gt; on codePlex.com.&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left:.5in"&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;Please note: Images and attachments will be removed from emails.
Any posts to this discussion will also be available online at codeplex.com&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;</description><author>billchi</author><pubDate>Fri, 06 Nov 2009 16:34:35 GMT</pubDate><guid isPermaLink="false">New Post: GetDynamicMemberNames() doesn't provide much info 20091106043435P</guid></item><item><title>New Post: GetDynamicMemberNames() doesn't provide much info</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=74111</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Yeah I get the issue with expando objects.&amp;nbsp; It will be interesting to see how the C# team can narrow the gap between the current edit-compile-debug environment and&amp;nbsp;REPL environments that are much better suited to using dynamic types.&lt;/p&gt;&lt;/div&gt;</description><author>r_keith_hill</author><pubDate>Thu, 05 Nov 2009 05:20:21 GMT</pubDate><guid isPermaLink="false">New Post: GetDynamicMemberNames() doesn't provide much info 20091105052021A</guid></item><item><title>New Post: GetDynamicMemberNames() doesn't provide much info</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=74111</link><description>&lt;div style="line-height: normal;"&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;You’re absolutely correct about what this method is for. 
IronPython also uses it for the dir() function for displaying what members are
available and I believe the VS debugger also uses it for displaying members.&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;I think the biggest problem w/ intellisense is that C# doesn’t
know either type of the normal object or the type of the meta object.  If you
solve knowing the type of the normal object it also still doesn’t give you the
meta object because the object could be doing something wacky in its IDMOP
implementation (e.g. conditionally returning different kinds of meta objects). 
And even if you could somehow make a meta objects for a lot of meta objects
this would be insufficient because the members are determined at runtime – ExpandoObject
is a good example of this.&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;So it’s tough problem that probably needs different solutions
for different types of objects/meta objects and cooperation between them and
whatever language is doing intellisense.&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"&gt;

&lt;div&gt;

&lt;div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"&gt; r_keith_hill
[mailto:notifications@codeplex.com] &lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Wednesday, November 04, 2009 2:28 PM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Dino Viehland&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; GetDynamicMemberNames() doesn't provide much info [dlr:74111]&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt; &lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;From:
r_keith_hill&lt;/span&gt;&lt;/p&gt;

&lt;div style="margin-bottom:24.0pt" id=ThreadNotificationPostBody&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;I was
reading a draft of a book covering C# 4.0 and it gives an example of using
GetDynamicMemberNames to return the list of XElement names for a DynamicObject
implementation that wraps an XML file.  The idea was that REPL
environments like Python can query the member names to provide
Intellisense.  I get this feature all the time in PowerShell where, if I
have created the object, PoweShell can reflect upon the instance and provide
Intellisense.  If these environments encounter a DynamicObject instance
then clearly the data return via reflection isn't very useful.  I thought
GetDynamicMemberNames() was the way I could write my object to interact better
in these other REPL environments.  &lt;br&gt;
&lt;br&gt;
BTW the Intellisense capability *could* be made available in C# - in
theory.  The C# compiler,while doing a background compile, would need to
create an instance of the object - or better yet - create an instance of a
metaobject ie an object that *just* describes the runtime type info for the
dynamic object.  This metaobject should have no destructive side effects
but it probably would need some extra info.  Like the XML wrapper would
need the path to the XML file.  Plus to get a really good Intellisense experience
the DynamicObject (or metaobject) needs to be able to return much richer info:
member description, parameter information, parameter description, return type,
etc.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;Thoughts?&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div style="border:none;border-top:solid #CCCCCC 1.0pt;padding:0in 0in 0in 0in" id=ThreadNotificationFooter&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;Read
the &lt;a href="http://dlr.codeplex.com/Thread/View.aspx?ThreadId=74111&amp;ANCHOR#Post253497"&gt;full
discussion online&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;To
add a post to this discussion, reply to this email (&lt;a href="mailto:dlr@discussions.codeplex.com?subject=[dlr:74111]"&gt;dlr@discussions.codeplex.com&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;To
start a new discussion for this project, email &lt;a href="mailto:dlr@discussions.codeplex.com"&gt;dlr@discussions.codeplex.com&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;You
are receiving this email because you subscribed to this discussion on CodePlex.
You can &lt;a href="https://dlr.codeplex.com/subscriptions/thread/project/edit"&gt;unsubscribe
or change your settings&lt;/a&gt; on codePlex.com.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;Please
note: Images and attachments will be removed from emails. Any posts to this
discussion will also be available online at codeplex.com&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;</description><author>dinov</author><pubDate>Thu, 05 Nov 2009 01:04:05 GMT</pubDate><guid isPermaLink="false">New Post: GetDynamicMemberNames() doesn't provide much info 20091105010405A</guid></item><item><title>New Post: GetDynamicMemberNames() doesn't provide much info</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=74111</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I was reading a draft of a book covering C# 4.0 and it gives an example of using GetDynamicMemberNames to return the list of XElement names for a DynamicObject implementation that wraps an XML file.&amp;nbsp; The idea was that REPL environments like Python can query the&amp;nbsp;member&amp;nbsp;names to provide Intellisense.&amp;nbsp; I get this feature all the time in PowerShell where, if I have created the object, PoweShell can reflect upon the instance and provide Intellisense.&amp;nbsp; If these environments encounter a DynamicObject instance then clearly the data return via reflection isn't very useful.&amp;nbsp; I thought GetDynamicMemberNames() was the way I could write my object to interact better in these other REPL environments.&amp;nbsp; &lt;br&gt;&lt;br&gt;BTW the Intellisense&amp;nbsp;capability&amp;nbsp;*could* be made available in C# - in theory.&amp;nbsp; The C# compiler,while doing a background compile, would need to create an instance of the object - or better yet - create an instance of&amp;nbsp;a metaobject ie an object that *just* describes the runtime type info for the dynamic object.&amp;nbsp; This metaobject should have no destructive side effects but it probably would need some extra info.&amp;nbsp; Like the XML wrapper would need the path to the XML file.&amp;nbsp; Plus to get a really good Intellisense experience the DynamicObject (or metaobject) needs to be able to return much richer info: member description, parameter information, parameter description, return type, etc.&lt;/p&gt;
&lt;p&gt;Thoughts?&lt;/p&gt;&lt;/div&gt;</description><author>r_keith_hill</author><pubDate>Wed, 04 Nov 2009 22:27:31 GMT</pubDate><guid isPermaLink="false">New Post: GetDynamicMemberNames() doesn't provide much info 20091104102731P</guid></item><item><title>New Post: Evaluate function in DLR hosting</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=73825</link><description>&lt;div style="line-height: normal;"&gt;&lt;blockquote style="border:solid .1em #ccc;font-style:italic;margin:.25em 1em 0 1em;padding:0 .25em 0 .25em"&gt;&lt;strong&gt;dinov wrote:&lt;/strong&gt;&lt;br&gt;
&lt;div&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;engine.Execute(&amp;hellip;) returns an object already &amp;ndash; so you can just do &amp;lsquo;return engine.Execute(&amp;ldquo;2+2&amp;rdquo;);&amp;lsquo;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;I see. ok i'll try that.&lt;/p&gt;
&lt;p&gt;Thanks a lot!&lt;/p&gt;&lt;/div&gt;</description><author>matan504</author><pubDate>Mon, 02 Nov 2009 18:32:08 GMT</pubDate><guid isPermaLink="false">New Post: Evaluate function in DLR hosting 20091102063208P</guid></item><item><title>New Post: Evaluate function in DLR hosting</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=73825</link><description>&lt;div style="line-height: normal;"&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;engine.Execute(…) returns an object already – so you can just do
‘return engine.Execute(“2+2”);‘&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"&gt;

&lt;div&gt;

&lt;div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"&gt; matan504
[mailto:notifications@codeplex.com] &lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Monday, November 02, 2009 10:02 AM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Dino Viehland&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Re: Evaluate function in DLR hosting [dlr:73825]&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt; &lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;From:
matan504&lt;/span&gt;&lt;/p&gt;

&lt;div style="margin-bottom:24.0pt" id=ThreadNotificationPostBody&gt;

&lt;blockquote style="border:solid #CCCCCC 1.5pt;padding:0in 3.0pt 0in 3.0pt;margin-left:12.0pt;margin-top:3.0pt;margin-right:12.0pt"&gt;

&lt;p class=MsoNormal&gt;&lt;strong&gt;&lt;i&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;dinov
wrote:&lt;/span&gt;&lt;/i&gt;&lt;/strong&gt;&lt;i&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p&gt;&lt;i&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;You can do engine.Execute(‘2+2’) and it’ll auto-detect that it’s
an expression and return the value.&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;&lt;i&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/blockquote&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;how do i
return an object from that?&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;this Evaluate
command is in a C# function that i wrote, and i need it to return an
object.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt; Thanks
for the fast reply!&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div style="border:none;border-top:solid #CCCCCC 1.0pt;padding:0in 0in 0in 0in" id=ThreadNotificationFooter&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;Read
the &lt;a href="http://dlr.codeplex.com/Thread/View.aspx?ThreadId=73825&amp;ANCHOR#Post252488"&gt;full
discussion online&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;To
add a post to this discussion, reply to this email (&lt;a href="mailto:dlr@discussions.codeplex.com?subject=[dlr:73825]"&gt;dlr@discussions.codeplex.com&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;To
start a new discussion for this project, email &lt;a href="mailto:dlr@discussions.codeplex.com"&gt;dlr@discussions.codeplex.com&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;You
are receiving this email because you subscribed to this discussion on CodePlex.
You can &lt;a href="https://dlr.codeplex.com/subscriptions/thread/project/edit"&gt;unsubscribe
or change your settings&lt;/a&gt; on codePlex.com.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;Please
note: Images and attachments will be removed from emails. Any posts to this
discussion will also be available online at codeplex.com&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;</description><author>dinov</author><pubDate>Mon, 02 Nov 2009 18:19:45 GMT</pubDate><guid isPermaLink="false">New Post: Evaluate function in DLR hosting 20091102061945P</guid></item><item><title>New Post: Evaluate function in DLR hosting</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=73825</link><description>&lt;div style="line-height: normal;"&gt;&lt;blockquote style="border:solid .1em #ccc;font-style:italic;margin:.25em 1em 0 1em;padding:0 .25em 0 .25em"&gt;&lt;strong&gt;dinov wrote:&lt;/strong&gt;&lt;br&gt;
&lt;div&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;You can do engine.Execute(&amp;lsquo;2+2&amp;rsquo;) and it&amp;rsquo;ll auto-detect that it&amp;rsquo;s an expression and return the value.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;how do i return an object from that?&lt;/p&gt;
&lt;p&gt;this&amp;nbsp;Evaluate command is in a C# function that i wrote, and i need it&amp;nbsp;to return an object.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for the fast reply!&lt;/p&gt;&lt;/div&gt;</description><author>matan504</author><pubDate>Mon, 02 Nov 2009 18:01:41 GMT</pubDate><guid isPermaLink="false">New Post: Evaluate function in DLR hosting 20091102060141P</guid></item><item><title>New Post: Evaluate function in DLR hosting</title><link>http://dlr.codeplex.com/Thread/View.aspx?ThreadId=73825</link><description>&lt;div style="line-height: normal;"&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt;You can do engine.Execute(‘2+2’) and it’ll auto-detect that it’s
an expression and return the value.&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style="font-size:11.0pt;font-family:'Calibri','sans-serif';color:#1F497D"&gt; &lt;/span&gt;&lt;/p&gt;

&lt;div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"&gt;

&lt;div&gt;

&lt;div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style="font-size:10.0pt;font-family:'Tahoma','sans-serif'"&gt; matan504
[mailto:notifications@codeplex.com] &lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Monday, November 02, 2009 7:51 AM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; Dino Viehland&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; Evaluate function in DLR hosting [dlr:73825]&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt; &lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;From:
matan504&lt;/span&gt;&lt;/p&gt;

&lt;div style="margin-bottom:24.0pt" id=ThreadNotificationPostBody&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;Hi,&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;I'm
currently fixing some code that used IronPython 1 and now uses IronPython
2.  of course I noticed that the DLR hosting interface has changed and now
uses Microsoft.Scripting and Microsoft.Scripting.Hosting packages.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;My problem
is that I have an old interface command: &amp;quot;python_engine.&lt;strong&gt;&lt;span style="font-family:'Verdana','sans-serif'"&gt;Evaluate&lt;/span&gt;&lt;/strong&gt;(string_command)&amp;quot;
that returns an Object, and I can't find the equivalent in the new Hosting API.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;Could you
please give any advice or help,&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;Thanks in
advance,&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif'"&gt;Matt&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;div style="border:none;border-top:solid #CCCCCC 1.0pt;padding:0in 0in 0in 0in" id=ThreadNotificationFooter&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;Read
the &lt;a href="http://dlr.codeplex.com/Thread/View.aspx?ThreadId=73825&amp;ANCHOR#Post252443"&gt;full
discussion online&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;To
add a post to this discussion, reply to this email (&lt;a href="mailto:dlr@discussions.codeplex.com?subject=[dlr:73825]"&gt;dlr@discussions.codeplex.com&lt;/a&gt;)&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;To
start a new discussion for this project, email &lt;a href="mailto:dlr@discussions.codeplex.com"&gt;dlr@discussions.codeplex.com&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;You
are receiving this email because you subscribed to this discussion on CodePlex.
You can &lt;a href="https://dlr.codeplex.com/subscriptions/thread/project/edit"&gt;unsubscribe
or change your settings&lt;/a&gt; on codePlex.com.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:9.0pt;font-family:'Verdana','sans-serif';color:gray"&gt;Please
note: Images and attachments will be removed from emails. Any posts to this
discussion will also be available online at codeplex.com&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/div&gt;</description><author>dinov</author><pubDate>Mon, 02 Nov 2009 17:34:55 GMT</pubDate><guid isPermaLink="false">New Post: Evaluate function in DLR hosting 20091102053455P</guid></item></channel></rss>