Re: [gwt-contrib] GWT,jsni() implemented as rebinding method

2013-12-16 Thread Goktug Gokdogan
On Mon, Dec 16, 2013 at 12:14 PM, Andrés Testi wrote: > Well, there is a sample for String.format() in the prototype: > https://github.com/andrestesti/gwt-rebindingmethods/blob/master/samples/hellorebinding/src/com/google/gwt/sample/hellorebinding/client/util/Strings.java#L39 > I agree, method reb

Re: [gwt-contrib] GWT,jsni() implemented as rebinding method

2013-12-16 Thread Andrés Testi
Well, there is a sample for String.format() in the prototype: https://github.com/andrestesti/gwt-rebindingmethods/blob/master/samples/hellorebinding/src/com/google/gwt/sample/hellorebinding/client/util/Strings.java#L39 I agree, method rebinding should eliminate the need of magic methods and simpl

Re: [gwt-contrib] GWT,jsni() implemented as rebinding method

2013-12-16 Thread Goktug Gokdogan
I actually implemented with simple eval for demonstration purposes but probably yours is preferable :) Yes, GWT.jsni is one of the use cases for method rebinding; that was something I was discussing as part of the original discussion. In reality GWT.jsni is better to be implementable without "nat

[gwt-contrib] GWT,jsni() implemented as rebinding method

2013-12-16 Thread Andrés Testi
This morning I read the Goktug's slides and was surprised by the GWT.jsni() method. It is a nice use case for rebinding methods. I just added a version of GWT.jsni() to HelloRebinding sample, implementing it as a rebinding method (no compiler mods). It took me just 30 minutes of coding to add an