Sea&Gull
1/6/2005 4:37:00 PM
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 <exp>' 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