jschementi / iron

[Jimmy Schementi's development fork] Implementations of Python and Ruby programming languages for .NET Framework that are built on top of the Dynamic Language Runtime.
http://ironruby.net
17 stars 2 forks source link

Add variables for document, window, xaml, and make dotting into them work #14

Closed jschementi closed 15 years ago

jschementi commented 15 years ago

Should this just be a per-language implementation, rather than hoping it works correctly for all languages?

jschementi commented 15 years ago

Currently have document, window, and me (instead of xaml, though "me" is a bad name), and dotting-into works, but I have a messed up IDO implementation which need tending to and testing.

jschementi commented 15 years ago

Should this be some module to include?

# ruby
include Microsoft::Scripting::Silverlight::Helpers

# python
from Microsoft.Scripting.Silverlight.Helpers import *
jschementi commented 15 years ago

Also need to figure out the best solution for "dotting-into", be it IDO, or some language-specific method

jschementi commented 15 years ago

I'm just sticking to a language-specific solution for dotting-into. Also, the helper methods will be defined in a language-specific way as well, since for Ruby it makes to define them on Kernel, while Python would prefer them as top-level methods.

jschementi commented 15 years ago

Fixed in 7b30f07f819ee063c2b7a0761a45fa646e4c5048

Ruby now defines all these helpers and provides a simpler API for getting elements, getting/setting properties and attributes, setting events. etc. Python still uses the extension types. The helpers are auto-requires/imported.