On Sat, Aug 05, 2000 at 04:10:20AM +1000, Damian Conway wrote: > But a switch is not a loop. > Within a loop the logic is: > > next -> try next case > last -> this was the last case And don't forget redo! redo -> reevaluate the case The block executed may have modified the switched variable, but we want to continue evaluating the cases from this point rather than starting again at the top of the switch. > Long and bitter experience indicates that fallthrough is a poor default > (but a good *option*). Indeed. -Scott -- Jonathan Scott Duff [EMAIL PROTECTED]
- RFC 22 (v1) Builtin switch statement Perl6 RFC Librarian
- Re: RFC 22 (v1) Builtin switch statement Graham Barr
- Re: RFC 22 (v1) Builtin switch statement Damian Conway
- Re: RFC 22 (v1) Builtin switch statement Jonathan Scott Duff
- Re: RFC 22 (v1) Builtin switch statement Ted Ashton
- Re: RFC 22 (v1) Builtin switch statement John Porter
- Re: RFC 22 (v1) Builtin switch statement Graham Barr
- Re: RFC 22 (v1) Builtin switch statement Glenn Linderman
- Re: RFC 22 (v1) Builtin switch statement Damian Conway
- Re: RFC 22 (v1) Builtin switch statement Glenn Linderman
- Re: RFC 22 (v1) Builtin switch statement Ken Fox
- Re: RFC 22 (v1) Builtin switch statem... Glenn Linderman