fall through

Verb1.fall through - fail utterly; collapse; "The project foundered"
Synonyms: fall flat, founder, flop
(programming)fall through - (The American misspelling "fall thru" is also common)

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:

switch (colour) case GREEN: do_green

The effect of the above code is to "do_green()" when colour is "GREEN", "do_red()" when colour is "RED", "do_blue()" on any other colour other than "PINK", and (and this is the important part) "do_pink()" *and then* "do_red()" when colour is "PINK". Fall-through is considered harmful by some, though there are contexts (such as the coding of state machines) in which it is natural; it is generally considered good practice to include a comment highlighting the fall-through where one would normally expect a break. See also Duff's Device.
fail, fall flat, flop, founder, go wrong, miscarry
Translate fall through to German, Translate fall through to French
fall guy
Fall herring
fall in
fall in line
fall in love
fall into
fall into place
fall like dominoes
Fall of Man
fall off
fall open
fall out
fall over
fall over backwards
fall short
fall short of
-- fall through --
fall thru
fall under
fall upon
fall webworm
fall-blooming hydrangea
fallen arch
Definitions Index: # A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

About this site and copyright information - Online Dictionary Home - Privacy Policy