[IronPython] Mixing Languages with the DLR
Michael Foord
fuzzyman at voidspace.org.uk
Mon Mar 31 23:22:23 CEST 2008
Jimmy Schementi wrote:
> I know this works between Jscript and Python. Ruby doesn’t yet play by
> the rules for method lookup. Fire up dlrconsole and see for yourself:
Ok - something for us to watch. Allowing users to script Resolver One
spreadsheets with Ruby could be fun.
Michael
http://www.ironpythoninaction.com
>
> http://dynamicsilverlight.net/see/dlrconsole
>
> js> function foo() {
> js| return 42
> js| }
> py> a = foo()
> py> a
> 42.0
> js> a
> 42.0
>
> How it works? I believe it’s something to do with sharing scopes, but
> you can take a look @
> http://dynamicsilverlight.net/see/dlrconsole.zip. Everything is in
> /app/app.py
>
> John, any idea when Ruby will play nicely with other languages?
>
> ~Jimmy
>
> On 3/30/08 8:25 AM, "Michael Foord" <fuzzyman at voidspace.org.uk> wrote:
>
> Hello all,
>
> A quick question on mixing languages with the DLR. If we have an
> execution scope that we have executed code in - can we execute
> code from
> another language in the same scope?
>
> If this is trivially easy (just use a different engine to execute the
> code in the same scope) then we could make Resolver One scriptable in
> the DLR language of your choosing... (Why anyone would want to use
> anything other than Python I don't know).
>
> Michael
> http://www.ironpythoninaction.com
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
More information about the Ironpython-users
mailing list