< previous page page_180 next page >

Page 180

F
face time n. Time spent interacting with somebody face-to-face (as opposed to via electronic links). "Oh, yeah, I spent some face time with him at the last Usenix."
factor n. See coefficient of X.
fall over vi. [IBM] Yet another synonym for crash or lose. 'Fall over hard' equates to crash and burn.
fall through v. (n. fallthrough, var. fall-through) 1. To exit a loop by exhaustion, i.e., by having fulfilled its exit condition rather than via a break or exception condition that exits from the middle of it. This usage appears to be really old, dating from the 1940s and 1950s. 2. To fail a test that would have passed control to a subroutine or some other distant portion of code. 3. In C, 'fall-through' occurs when the flow of execution in a switch statement reaches a case label other than by jumping there from the switch header, passing a point where one would normally expect to find a break. A trivial example:
63aae95d7142d91b7e908a3e5868baf1.gif 63aae95d7142d91b7e908a3e5868baf1.gif
switch (color)
{
case GREEN:
63aae95d7142d91b7e908a3e5868baf1.gifdo_green ( );
63aae95d7142d91b7e908a3e5868baf1.gifbreak;
case PINK:
63aae95d7142d91b7e908a3e5868baf1.gifdo_pink ( );
63aae95d7142d91b7e908a3e5868baf1.gif/ * FALL THROUGH * /
case RED:
63aae95d7142d91b7e908a3e5868baf1.gifdo_red ( );
63aae95d7142d91b7e908a3e5868baf1.gifbreak;
default:
63aae95d7142d91b7e908a3e5868baf1.gif 63aae95d7142d91b7e908a3e5868baf1.gif
63aae95d7142d91b7e908a3e5868baf1.gifdo_blue ( );
63aae95d7142d91b7e908a3e5868baf1.gifbreak;
}
The variant spelling /* FALL THRU */ is also common.
The effect of the above code is to do_green() when color is GREEN, do_red() when color is RED, do_blue() on any other color other than PINK, and (and this is the important part) do_pink() and then do_red() when color is PINK. Fall-through is considered harmful by some, though there are contexts (such as the coding of state machines) in which it is

 
< previous page page_180 next page >

If you like this book, buy it!