<HEAD><TITLE>discuss@charon: [435] in "Coldmud discussion meeting"</TITLE>
<H1>[435] in Coldmud discussion meeting</H1></HEAD>
<A HREF="/"><IMG SRC="/i-d.gif" ALT="root"></A>
<A HREF="?435"><IMG SRC="/i-back.gif" ALT="meeting"></A>
<A HREF="/help.html"><IMG SRC="/i-help.gif" ALT="help"></A>
<A HREF="1"><IMG SRC="/i-first.gif" ALT="first"></A>
<IMG SRC="/n-fref.gif" ALT="">
<IMG SRC="/n-pref.gif" ALT="">
<A HREF="434"><IMG SRC="/i-prev.gif" ALT="previous"></A>
<A HREF="436"><IMG SRC="/i-next.gif" ALT="next"></A>
<A HREF="438"><IMG SRC="/i-nref.gif" ALT="next in chain"></A>
<A HREF="438"><IMG SRC="/i-lref.gif" ALT="last in chain"></A>
<A HREF="1641"><IMG SRC="/i-last.gif" ALT="last"></A>
<HR><H2>while {statements} (testexpr) {statements}</H2>
<H3>daemon@ATHENA.MIT.EDU (Thu Sep 22 18:53:54 1994
)</H3>
<PRE>
From: deforest@netcom.com (Robert de Forest)
To: coldstuff@MIT.EDU (cold)
Date: Thu, 22 Sep 1994 15:47:24 -0700 (PDT)

Just want to clarify/see if I read that right:

Change the while (expr) statement; statement into
while statement; (expr) statement; ?

Does that mean

while {
  .stuff();
} (.test()) {
  .more_stuff();
}

would be legal?

And would it be equivalent to

while (1) {
  .stuff();
  if (!(.test()))
    break;
  .more_stuff();
}

?

I kinda like it, if that's what it is...

Crag / Robert de Forest
</PRE>
