Monday, November 1, 2010

Re: for(;;) with 2.01

As an aside, do while is semantically much 'cleaner' as is while(boolean) IMHO :)


On Fri, Oct 29, 2010 at 5:16 PM, marcusucubi <marcusucubi@gmail.com> wrote:
Hi,

I had a loop (using a for(;;) {} ) in my GWT code.

When I moved to 2.01, the loop acted weird. (the function with the
loop would always return false, when true was also possible.)

I changed the loop to a do{}while(true); loop and it worked fine.

Sorry I don't have a sample code to demo, but I thought it might be
helpful to share.  cheers,

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




--
Jeff

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

No comments:

Post a Comment