List&lt;object&gt; is a heterogenous data container.<br><br>There&#39;s nothing in dynamic typing that is dependent on changes in the underlying CLR code execution engine -- otherwise, we wouldn&#39;t be able to ship basically the same DLR for CLR 2 as what&#39;s included in CLR 4.&nbsp; Value types still need to be boxed to be treated as &quot;dynamic&quot;.<br>
<br>Do I misunderstand what you mean?<br><br><div class="gmail_quote">On Mon, Oct 27, 2008 at 4:17 PM, Dody Gunawinata <span dir="ltr">&lt;<a href="mailto:empirebuilder@gmail.com">empirebuilder@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">I wonder if this Dynamic Type finally allow heterogeneous data container to be used in C#.&nbsp;<div>
<br></div><div>This is from the sample code&nbsp;</div><div>&quot;&nbsp;&nbsp;static void Main(string[] args)<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;{</div>
<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine(&quot;Loading helloworld.py...&quot;);</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ScriptRuntime py = Python.CreateRuntime();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dynamic helloworld = py.UseFile(&quot;helloworld.py&quot;);</div>

<div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine(&quot;helloworld.py loaded!&quot;);</div><div><br></div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int i = 0; i &lt; 1000; i++)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine(helloworld.welcome(&quot;Employee #{0}&quot;), i);</div>

<div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Console.WriteLine();</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}&quot;</div><div><br></div><div>Now if helloworld actually returns a tuple or mixed typed array, can it actually be used in the C# program?</div>

<br><div>Dody G.</div><div><div><div></div><div class="Wj3C7c"><br><div class="gmail_quote">On Tue, Oct 28, 2008 at 12:47 AM, Curt Hagenlocher <span dir="ltr">&lt;<a href="mailto:curt@hagenlocher.org" target="_blank">curt@hagenlocher.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sixteen months ago, Eric Lippert wrote:<div><br></div><div>&quot;Second, this raises the question of whether C# ought to support some of the dynamic features which languages like JScript, Ruby, Python, etc, support. The VB team&#39;s motto as far as this question is concerned has always been early binding when possible, late binding when necessary. &nbsp;The C# team, by contrast, has always cleaved to the principle that we do early binding when possible, late binding when the user explicitly writes umpteen dozen of lines of ugly reflection code.&quot;<br>


<div>[<a href="http://blogs.msdn.com/ericlippert/archive/2007/06/21/calling-static-methods-on-type-variables-is-illegal-part-three.aspx" target="_blank">http://blogs.msdn.com/ericlippert/archive/2007/06/21/calling-static-methods-on-type-variables-is-illegal-part-three.aspx</a>]<br>


</div><div><br></div><div>Philosophically, this is&nbsp;basically&nbsp;still true -- you have to explicitly opt-in to the dynamic behavior.&nbsp;&nbsp;What&#39;s changed is that we&#39;ve written those &quot;umpteen dozen of lines of ugly reflection code&quot; for you.</div>


<div><br></div><div><br></div><div>As for the feature list being underwhelming, there are undoubtedly many people who take the opposite position -- that the language is evolving far too quickly for them to assimilate. &nbsp;And in truth, I can&#39;t think of a programming language with C#&#39;s rate of adoption which has evolved as quickly or as radically as C# has.<div>

<div></div><div><br>
<br><div class="gmail_quote">On Mon, Oct 27, 2008 at 3:36 PM, Dody Gunawinata <span dir="ltr">&lt;<a href="mailto:empirebuilder@gmail.com" target="_blank">empirebuilder@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div dir="ltr">Yup. It looks like more information needed on all of these dynamic features. In the first glance it looks like C# 4.0 is turning into VB 6 :)<div><div></div><div><br><br><div class="gmail_quote">
On Tue, Oct 28, 2008 at 12:17 AM, Dino Viehland <span dir="ltr">&lt;<a href="mailto:dinov@microsoft.com" target="_blank">dinov@microsoft.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">You might find Dynamic / DynamicObject to be more useful for
doing simple method-missing style calls.&nbsp; IDynamicObject gives you a lot of power
you might not need – but then again you can do some pretty cool things with it
too.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">&nbsp;</span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-bounces@lists.ironpython.com" target="_blank">users-bounces@lists.ironpython.com</a>] <b>On
Behalf Of </b>Dody Gunawinata<br>
<b>Sent:</b> Monday, October 27, 2008 3:13 PM<br>
<b>To:</b> Discussion of IronPython<br>
<b>Subject:</b> Re: [IronPython] Announcing IronPython 2.0 VS10 CTP</span></p>

</div><div><div></div><div>

<p>&nbsp;</p>

<div>

<p style="margin-bottom: 12pt;">Although it looks like&nbsp;<span><span style="font-size: 10pt;">IDynamicObject</span></span><span style="font-size: 11pt;">&nbsp;looks like C#
equivalent of&nbsp;</span><span><span>method_missing. Now that&#39;s something to celebrate.</span></span></p>

<div>

<p>On Tue, Oct 28, 2008 at 12:02 AM, Dody Gunawinata &lt;<a href="mailto:empirebuilder@gmail.com" target="_blank">empirebuilder@gmail.com</a>&gt; wrote:</p>

<div>

<p>Is it me or is C# 4.0 feature list so far is underwhelming?
(I know, it&#39;s a wrong list)</p>

<div>

<p>&nbsp;</p>

</div>

<div>

<p>&nbsp;</p>

<div>

<div>

<div>

<p>On Mon, Oct 27, 2008 at 6:33 PM, Srivatsn Narayanan &lt;<a href="mailto:srivatsn@microsoft.com" target="_blank">srivatsn@microsoft.com</a>&gt;
wrote:</p>

</div>

<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;">


<div>

<div>

<div>

<div>

<p>Hello IronPython Community,</p>

<p>&nbsp;</p>

<p>This is a special release of IronPython designed to work with the <span style="color: rgb(31, 73, 125);"><a href="https://connect.microsoft.com/VisualStudio/content/content.aspx?ContentID=9790" target="_blank">Visual Studio 2010 CTP</a></span>.&nbsp; This release will let
you try out C# 4.0&#39;s new Dynamic feature, which allows you to easily call into
dynamic object models such as IronPython modules from your C# code.</p>

<p style="margin-left: 0.5in;">&nbsp;</p>

<p>To get started using IronPython with C#&#39;s Dynamic feature:</p>

<p style="margin-left: 0.75in; text-indent: -0.25in;">1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Install <a href="http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=18448" target="_blank">this .MSI</a> on your Visual Studio 2010 CTP Virtual PC image,
either by enabling network access or sharing a host folder in Virtual PC&#39;s
settings.</p>

<p style="margin-left: 0.75in; text-indent: -0.25in;">2.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
In Visual Studio 2010, click the <i>CTP Walkthroughs</i> link on the Start Page
and browse to the <i>Visual Studio</i> walkthroughs.&nbsp; Follow along with
the <i>Dynamic Programming in C#</i> walkthrough.</p>

<p>&nbsp;</p>

<p>This release is not related to the recently released IronPython 2.0 RC1. In
fact, this is based on source code from the beta4 timeframe. Also note that
this release will only work with the VS10 CTP and not against any other version
of .NET. </p>

<p>&nbsp;</p>

<p>You can download the release here - <a href="http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=18448" target="_blank">http://www.codeplex.com/IronPython/Release/ProjectReleases.aspx?ReleaseId=18448</a></p>






<p>&nbsp;</p>

<p>The IronPython Team</p>

<p>&nbsp;</p>

</div>

</div>

<p>&nbsp;</p>

</div>

</div>

<div>

<p style="margin-bottom: 12pt;">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a></p>

</div>

</blockquote>

</div>

<p style="margin-bottom: 12pt;"><br>
<br clear="all">
<br>
-- <br>
<a href="http://nomadlife.org" target="_blank">nomadlife.org</a></p>

</div>

</div>

</div>

</div>

<p style="margin-bottom: 12pt;"><br>
<br clear="all">
<br>
-- <br>
<a href="http://nomadlife.org" target="_blank">nomadlife.org</a></p>

</div>

</div></div></div>

</div>


</blockquote></div><br><br clear="all"><br></div></div>-- <br><a href="http://nomadlife.org" target="_blank">nomadlife.org</a><br><br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br></div></div></div></div>
</blockquote></div><br><br clear="all"><br></div></div>-- <br><a href="http://nomadlife.org" target="_blank">nomadlife.org</a><br><br>
</div></div></div>
</blockquote></div><br>