[Nickle] Scope for condition of do while

Carl Worth cworth at cworth.org
Fri Feb 1 17:11:25 PST 2008


Should this be a legitimate thing to do?

    do {
        putchar (int c = getc (socket));
    } while (c != '.');

That is, should the while condition share scope with the block above
even though it's syntactically outside?

Keith whipped up a special-case implementation of this, but he's
definitely not sure that it's not a horrible idea. He's planning to
cogitate a bit more, so I'm just sending this to remind him to type
his thoughts at some point, and also to solicit any other thoughts
others might have.

-Carl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/nickle/attachments/20080202/bb7b795e/attachment.pgp 


More information about the Nickle mailing list