OnlineWoerterBuecher.de
Internes

Lexikon


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() break caSe PINK: do_pink() /* FALL THROUGH */ caSe RED: do_red() break default: do_blue() break } 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.

Style="border-width:thin; border-color:#333333; border-Style:daShed; padding:5px;" align="left">In addition Suitable contentS:
[ 2 ] [ = ] [ ad ] [ ag ] [ ai ] [ AL ] [ al ] [ am ] [ an ] [ app ] [ ar ] [ arc ] [ aS ] [ at ] [ au ] [ av ] [ b ] [ be ] [ bo ] [ br ] [ break ] [ by ] [ C ] [ ca ] [ caSe ] [ cc ] [ ch ] [ cl ] [ co ] [ code ] [ colour ] [ com ] [ comment ] [ con ] [ conS ] [ conSidered harmful ] [ context ] [ control ] [ cu ] [ D ] [ dd ] [ de ] [ ding ] [ do ] [ du ] [ E ] [ ec ] [ ed ] [ ee ] [ er ] [ era ] [ eS ] [ exception ] [ exec ] [ execution ] [ expect ] [ fall thru ] [ fault ] [ fi ] [ file ] [ fr ] [ G ] [ ge ] [ gen ] [ gh ] [ gr ] [ GRE ] [ h ] [ hat ] [ header ] [ hr ] [ ht ] [ id ] [ il ] [ import ] [ in ] [ inc ] [ include ] [ int ] [ io ] [ iS ] [ it ] [ jump ] [ K ] [ la ] [ ld ] [ Lex ] [ li ] [ LL ] [ loop ] [ lS ] [ lt ] [ lu ] [ ly ] [ ma ] [ machine ] [ mall ] [ mm ] [ mo ] [ mod ] [ module ] [ mp ] [ N ] [ na ] [ nc ] [ ne ] [ ng ] [ no ] [ norm ] [ nS ] [ O ] [ om ] [ op ] [ pa ] [ pe ] [ ph ] [ PI ] [ PIN ] [ ping ] [ pl ] [ point ] [ port ] [ pr ] [ program ] [ programming ] [ pt ] [ query ] [ rc ] [ RE ] [ re ] [ real ] [ ro ] [ routine ] [ ru ] [ S ] [ Sa ] [ Se ] [ Si ] [ So ] [ Spell ] [ St ] [ State ] [ State machine ] [ Su ] [ Subroutine ] [ Switch ] [ Switch Statement ] [ T ] [ tc ] [ teSt ] [ text ] [ th ] [ to ] [ tr ] [ ug ] [ um ] [ uS ] [ ve ] [ vi ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (6581 Reads)

All logos and trademarks in this site are property of their respective owner.

Page Generation in 0.1037 Seconds, with 16 Database-Queries
Zurück zur Startseite