sure.  but that's a bit counterintutitive, isn't it?  the loop continues
looping without doing anything.  but i should talk,
i'm using c to count scheme-style. ☺

is break really that broken?  because of the lack of break,
you see some rc code that looks like it was written for a class with an
expansive no-goto edict. ;-)

- erik

On Sat Aug  5 19:51:13 CDT 2006, [EMAIL PROTECTED] wrote:
> One could rewrite the example script as
> 
>       # figure out what day we have by subtraction
>       j = (Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec)
>       c = ()
>       mon = ()
>       for (i in 31 $feb 31 30 31 30 31 31 30 31 30 31)
>               if (~ $#mon 0) {
>                       c = ($c 1)
>                       if (expr $i '>' $d >/dev/null)
>                               mon = $#c
>                       if not
>                               d = `{expr $d - $i}
>               }
> 
> The lack of break may require recasting the form of a script.

Reply via email to