On Mon, Dec 27, 2010 at 11:58 AM, bearophile <span dir="ltr"><<a href="mailto:bearophileHUGS@lycos.com">bearophileHUGS@lycos.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

 we could type with a few additional keystrokes:<br>
<br>
COMObj objDoc = COMObj.create("Word.Application");<br>
objDoc.invoke("Open", new COMData[] { new COMString(strFilename) };<br>
<font color="#888888"><br>
</font></blockquote></div><br>Now that it's been mentioned, dynamic typing abilities within D would be something awesome.  C# has already gotten it in 4.0.<br>Take a look:<br><pre style="margin-left: 40px;">dynamic wordapp = new Word.Application();<br>

dynamic doc = wordapp.Documents.Open(FileName: "MyDoc.docx");<br><br><br></pre>100% valid C#.  Made possible with the Dynamic Language Runtime.<br><br>Take a look at the IronPython project (which I have an amount experience with) initially sponsored by Microsoft (which later dropped its support).  It's basically a Python compiler written in C# targeting the Dynamic Language Runtime. C# calling Python and the other way around seamlessly, pretty much.  C# being able to reference  Python assemblies. Python in <a href="http://ASP.NET">ASP.NET</a> and Silverlight.  It is awesome (still a community project right now, it's still going on without Microsoft's official support).<br>

<br>Anyways, dynamic typing abilities in D would be very nice, and it opens up quite a number possibilities.<br><div style="margin-left: 40px;"><br></div>