precedence lossage /pre's*-dens los'*j/ n.
[C
programmers] Coding error in an expression due to unexpected
grouping of arithmetic or logical operators by the compiler. Used
esp. of certain common coding errors in C due to the
nonintuitively low precedence levels of &, |,
^, <<, and >> (for this reason, experienced C
programmers deliberately forget the language's baroque
precedence hierarchy and parenthesize defensively). Can always be
avoided by suitable use of parentheses. LISP fans enjoy
pointing out that this can't happen in their favorite
language, which eschews precedence entirely, requiring one to use
explicit parentheses everywhere. See aliasing bug, memory l
[C
programmers] Coding error in an expression due to unexpected
grouping of arithmetic or logical operators by the compiler. Used
esp. of certain common coding errors in C due to the
nonintuitively low precedence levels of &, |,
^, <<, and >> (for this reason, experienced C
programmers deliberately forget the language's baroque
precedence hierarchy and parenthesize defensively). Can always be
avoided by suitable use of parentheses. LISP fans enjoy
pointing out that this can't happen in their favorite
language, which eschews precedence entirely, requiring one to use
explicit parentheses everywhere. See aliasing bug, memory l
Related:
- precedence lossage: /pre's*-dens los'*j/ [C programmers] n.
Coding error in an expression due to unexpected grouping... - aliasing bug: n. A class of subtle programming errors that can
arise in code that does dynamic allocation,
esp. via `malloc(3)' or equivalent. If several... - aliasing bug n.
A class of subtle programming errors that
can arise in code that does dynamic allocation,
esp. via malloc(3) or equivalent. If several pointers... - fandango on core n.
[Unix/C hackers, from the Iberian
dance] In C,
a wild pointer that runs out of bounds, causing a ... - fandango on core: [UNIX/C hackers, from the Mexican dance] n.
In C, a wild pointer that runs out of bounds, causing... - overrun screw: [C programming] n. A variety of {fandango on
core} produced by scribbling past the end of an array (C
implementations typically have no checks for this error).
This is relatively benign and easy to spot if the... - smash the stack: [C programming] n. To corrupt the execution stack
by writing past the end of a local array or other data structure.
Code that smashes the stack can cause a return from... - smash the stack n.
[C programming] To corrupt the execution
stack by writing past the end of a local array or other data
structure.
Code that smashes the stack can cause a return from... - memory leak: n. An error in a program's dynamic-store allocation
logic that causes it to fail to reclaim discarded memory,
leading to eventual collapse due to memory exhaustion...
