On Aug 15, 2011, at 5:42 PM, Zachary Carter wrote:

> 
> It works for simple examples but has a ways to go before it can run
> the Smalltalk Collection classes. Also, AFAICT "transpilation" won't
> be able to fully support super references (namely, rebinding super
> using Object.defineMethod)  but it can take us pretty far. The other
> features seem attainable.
> 
You should be able to come up with a way rebind super for defineMethod.  The 
first thing that  comes to mind is to attach a "private" property to each 
function that references super.  The value of the property is a function that 
creates a new function using the same code but with a different internal 
binding for super.

However, to transpile <| you really need to have __proto__ available so an 
implementation without it (IE9, etc.) couldn't be a target.

Allen

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to