Friday, June 3, 2016

Re: String a == String b

Reading here (http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html), it seems that Java Strings are converted to Javascript primitive strings (not string objects)... That way, you can't compare pointers to them - if they contain the same characters, they are equal to each other no matter how they were created.

But, that is assuming you're dealing with primitive strings on JS. I'm not GWT->JS conversion expert by any means.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment