<HTML>
<HEAD>
<TITLE>Re: [IronPython] Mixing Languages with the DLR</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I know this works between Jscript and Python. Ruby doesn&#8217;t yet play by the rules for method lookup. Fire up dlrconsole and see for yourself:<BR>
<BR>
<a href="http://dynamicsilverlight.net/see/dlrconsole">http://dynamicsilverlight.net/see/dlrconsole</a><BR>
</SPAN></FONT><SPAN STYLE='font-size:11pt'><FONT FACE="Consolas, Courier New, Courier"><BR>
js&gt; function foo() {<BR>
js| &nbsp;&nbsp;return 42<BR>
js| }<BR>
py&gt; a = foo()<BR>
py&gt; a<BR>
42.0<BR>
js&gt; a<BR>
42.0<BR>
</FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><BR>
How it works? I believe it&#8217;s something to do with sharing scopes, but you can take a look @ <a href="http://dynamicsilverlight.net/see/dlrconsole.zip.">http://dynamicsilverlight.net/see/dlrconsole.zip.</a> Everything is in /app/app.py<BR>
<BR>
John, any idea when Ruby will play nicely with other languages?<BR>
<BR>
~Jimmy<BR>
<BR>
On 3/30/08 8:25 AM, &quot;Michael Foord&quot; &lt;fuzzyman@voidspace.org.uk&gt; wrote:<BR>
<BR>
</FONT></SPAN></FONT><BLOCKQUOTE><FONT SIZE="4"><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial">Hello all,<BR>
<BR>
A quick question on mixing languages with the DLR. If we have an<BR>
execution scope that we have executed code in - can we execute code from<BR>
another language in the same scope?<BR>
<BR>
If this is trivially easy (just use a different engine to execute the<BR>
code in the same scope) then we could make Resolver One scriptable in<BR>
the DLR language of your choosing... (Why anyone would want to use<BR>
anything other than Python I don't know).<BR>
<BR>
Michael<BR>
<a href="http://www.ironpythoninaction.com">http://www.ironpythoninaction.com</a><BR>
_______________________________________________<BR>
Users mailing list<BR>
Users@lists.ironpython.com<BR>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><BR>
<BR>
</FONT></SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>