Held: Monday, February 23, 1998
if G1 -> S1 | G2 -> S2 | G3 -> S3 ... | Gn -> Sn fi
G's are guards (tests).
S's are statements (stuff to execute).
Object max(Object x, Object y)
{
if (x.lessThan(y))
return y;
else
return x;
} // max
y as the maximum, even
when they're equal. In most cases, we don't really care which we use.
Object max(Object x, Object y)
{
if x.lessThan(y) -> return y;
| y.lessThan(x) -> return x;
fi
} // max
if mouseIsDown -> handleMouse() | keyIsDown -> handleKey() fi
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
Source text last modified Thu May 7 20:29:39 1998.
This page generated on Thu May 7 20:34:40 1998 by SiteWeaver.
Contact our webmaster at rebelsky@math.grin.edu