On Wed, Aug 4, 2010 at 4:26 PM, Reinier Zwitserloot <reini...@gmail.com>wrote:
> I really like how folks keep making the argument that java sucks > because it is *well documented*. That made me laugh. What an euphemism! :D > Only a scala fanboy would go that far. > > </trollbait> > > > On Aug 4, 11:01 am, Kevin Wright <kev.lee.wri...@gmail.com> wrote: > > my thinking: > > > > `http:` is the label (followed by a comment that the pre-processor strips > > out) > > `do { ... } while (...)` is the labelled statement > > `continue <label>` attempts to transfer control back to the "continue > > target". In this case, the labelled do/while loop > > > > a `do {statement} while (expression)` loops will check its expression > only > > once the statement has executed normally (which it hasn't here) > > So... the loop will begin again, and continue infinitely, or until an > > exception is thrown or the JVM is terminated. > > > > No stack involved, at the level of compiled machine code it'll be jump > > instructions all the way down... > > > > The language spec covering all this is here: > http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html > > ( or in pdf here: > http://java.sun.com/docs/books/jls/download/langspec-3.0.pdf) > > > > For anyone still labouring under the delusion that Java is a simple > > language, it's a heavyweight document; running to 650 pages in almost 8MB > > but you only really need chapter 14 for this question :) > > > > On 4 August 2010 05:43, Kirk <kirk.pepperd...@gmail.com> wrote: > > > > > > > > > > > > > I'll be speaking there so I don't need a pass but thought it might be > fun > > > to put in a puzzler. > > > > > public class StrangeLoop { > > > public static void main(String[] args) { > > > http://www.thestrangeloop.com > > > do { > > > System.out.println("Strange Loop"); > > > continue http; > > > } while (false); > > > } > > > } > > > > > Puzzler, infinite loop or normal termination? > > > > > Regards, > > > Kirk > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "The Java Posse" group. > > > To post to this group, send email to javapo...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > javaposse+unsubscr...@googlegroups.com<javaposse%2bunsubscr...@googlegroups.com> > <javaposse%2bunsubscr...@googlegroups .com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/javaposse?hl=en. > > > > -- > > Kevin Wright > > > > mail/google talk: kev.lee.wri...@gmail.com > > wave: kev.lee.wri...@googlewave.com > > skype: kev.lee.wright > > twitter: @thecoda > > -- > You received this message because you are subscribed to the Google Groups > "The Java Posse" group. > To post to this group, send email to javapo...@googlegroups.com. > To unsubscribe from this group, send email to > javaposse+unsubscr...@googlegroups.com<javaposse%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/javaposse?hl=en. > > -- Viktor Klang | "A complex system that works is invariably | found to have evolved from a simple system | that worked." - John Gall Akka - the Actor Kernel: Akkasource.org Twttr: twitter.com/viktorklang -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to javapo...@googlegroups.com. To unsubscribe from this group, send email to javaposse+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.