Nice. Is the JsCollections module your own or are you referencing it externally from somewhere? I'd like to add it via svn:externals.
Bobby On Jun 23, 5:56 am, Thomas Broyer <[email protected]> wrote: > On 22 juin, 23:59, Bobby <[email protected]> wrote: > > > One note about arrays. If a method in the API receives or returns an > > array, i currently make use of the JsArray class, which can go travel > > between JS and Java. I would prefer exposing these methods as > > receiving and returning actual arrays rather than JsArray, only > > because it's more generic (functionally there's little difference). > > Little but not negligible: a JsArray has a varying length. > > > I > > could make use of an array helper class that would convert a JsArray > > back and forth between a standard array, but if this will add some > > overhead (such as having to iterate through the array members) then > > it's probably not worth it. Any suggestions on this? > > It would add overhead only in Hosted Mode, as you can use a > "reinterpretCast" in Web Mode with no overhead at all. It's been > discussed several times on the list and you can find an example > (actually, a library) athttp://code.google.com/p/gwt-in-the-air(in > the JsCollections module) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
