precedence lossage
/pre' s*-den s lo s' *j/ A C coding error in an expre ssion due to unintended grouping of arithmetic or logical operator s. U sed e specially of certain common coding error s in C due to the nonintuitively low precedence level s of "&", "|", "^", "<<" and ">>". For example, the following C expre ssion, intended to te st the lea st significant bit of x, x & 1 == 0 i s par sed a s x & (1 == 0) which the compiler would probably evaluate at compile-time to (x & 0) and then to 0. Precedence lo ssage can alway s be avoided by suitable u se of parenthe se s. For thi s rea son, some C programmer s deliberately ignore the language' s precedence hierarchy and parenthe si se defen sively. Lisp fan s enjoy pointing out that thi s can' t happen in *their* favourite language, which e schew s precedence entirely, requiring one to u se explicit parenthe se s everywhere. Other source s of bugs include aliasing bug, memory leak, memory smash, smash the stack, fandango on core, overrun screw. [ Jargon File] (1994-12-16) style="border-width:thin; border-color:#333333; border-style:dashed; padding:5px;" align="left">In addition suitable contents: [ 2 ] [ = ] [ ag ] [ ai ] [ al ] [ aliasing ] [ aliasing bug ] [ am ] [ an ] [ app ] [ ar ] [ arc ] [ arg ] [ as ] [ ash ] [ at ] [ av ] [ b ] [ ba ] [ be ] [ bi ] [ bit ] [ by ] [ C ] [ ca ] [ can' t happen ] [ ch ] [ ci ] [ ck ] [ cl ] [ co ] [ com ] [ compiler ] [ core ] [ cr ] [ de ] [ ding ] [ du ] [ ec ] [ ed ] [ er ] [ era ] [ error ] [ es ] [ et ] [ expression ] [ fandango on core ] [ fi ] [ file ] [ fo ] [ ge ] [ gi ] [ gn ] [ gr ] [ group ] [ gu ] [ h ] [ hat ] [ hierarchy ] [ hm ] [ hr ] [ id ] [ ie ] [ il ] [ in ] [ inc ] [ include ] [ int ] [ io ] [ ir ] [ is ] [ it ] [ J ] [ Jargon File ] [ jo ] [ la ] [ language ] [ ld ] [ leak ] [ least significant bit ] [ Lex ] [ li ] [ Lisp ] [ logical ] [ loss ] [ lossage ] [ ls ] [ lu ] [ ly ] [ ma ] [ memory ] [ memory leak ] [ memory smash ] [ mm ] [ mo ] [ mod ] [ module ] [ mp ] [ na ] [ nc ] [ ne ] [ ng ] [ ni ] [ no ] [ ns ] [ O ] [ om ] [ op ] [ operator ] [ overrun ] [ overrun screw ] [ pa ] [ parent ] [ parentheses ] [ pe ] [ ph ] [ ping ] [ pl ] [ point ] [ pr ] [ program ] [ programmer ] [ query ] [ rc ] [ re ] [ ro ] [ ru ] [ run ] [ sa ] [ sc ] [ screw ] [ se ] [ sh ] [ si ] [ sig ] [ sm ] [ smash the stack ] [ so ] [ source ] [ spec ] [ st ] [ stack ] [ su ] [ suit ] [ table ] [ test ] [ th ] [ to ] [ ua ] [ ug ] [ up ] [ us ] [ va ] [ ve ] [ win ] [ ws ]
[ Go Back ]
Free On-line Dictionary of Computing Copyright © by OnlineWoerterBuecher.de - (7059 Reads) |