in reply to typo in camel 3

The parens aren't required on statement modifiers. The code as written in the book (well, a reasonable facsimile, anyway) works for me. If it had been

do { 1; } until...
then you'd have a more valid point.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: typo in camel 3
by davorg (Chancellor) on Apr 10, 2001 at 12:14 UTC
    The code as written in the book (well, a reasonable facsimile, anyway) works for me.

    Are you sure about that? The code as written has mismatched parentheses. You either need to make the suggested change or remove the parenthesis after -1.

    --
    <http://www.dave.org.uk>

    "Perl makes the fun jobs fun
    and the boring jobs bearable" - me

      I mentally removed the trailing paren when retyping the example. Mea culpa.

      ...and I read that line at least 6 times trying to figure out what could be wrong with it (since jptxs bothered to post about it) before I rewrote it. Comparing the lines I noticed changes to parens at both ends and never recovered from my assumption. /: Dang you, jptxs, next time at least mention "unbalanced", will ya?? (:

              - tye (but my friends call me "Tye")