On May 6, 10:18 am, X <[email protected]> wrote:
> public interface Bax{
>     public String getValue();}
>
> public class Bar implements Bax{
>     String size;
>     public String getValue(){return size;}
>
> }
>
> public class Foo implements Ba...  OH WAIT!!
>
> You have one class returning String, and another returning int.

I know what you are saying, but given the fact that all of the
Javascript is regenerated on every compile, and that dynamic
classloading is not available in GWT, there is no reason why the
compiler itself can't share these functions.

What you are saying is that "if the circumstances where changed
somehow, the optimisation won't work anymore". Well, if that happens,
the GWT compiler wouldn't generate the optimisation anymore.

If dynamic classloading was supported, this wouldn't work of course,
but dynamic classloading was not included in GWT for exactly this
reason; to give the compiler better ability to do optimisations.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to