From: Sea&Gull Date: 2005-01-07T01:41:30+09:00 Subject: Re: Return from a block? Bertram Scharpf wrote: > Am Donnerstag, 06. Jan 2005, 18:32:52 +0900 schrieb Dave Thomas: > >>On Jan 6, 2005, at 3:17 AM, Bertram Scharpf wrote: >> >> >>>>Thanks ... there it is, plain as day, on page 345 of PickAxe 2nd >>>>edition. >>> >>>Sorry, where are the page numbers in the online version? >>> >> >>If you're looking at it online, it's probably the first edition. > > > What a surprise. > > Anyway, I would have liked to know, what 'next ' means. > Never mind; in the meantime I found out. This C code may illustrate how "next", "break", "redo" behave in Ruby: /*****************************/ while (condition) { label_redo: goto label_next; /* next */ goto label_break; /* break */ goto label_redo; /* redo */ /* some code */ label_next: } label_break: /*****************************/ -- s&g