Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

associativity

You are here: irt.org | FOLDOC | associativity

<programming> The property of an operator that says whether a sequence of three or more expressions combined by the operator will be evaluated from left to right (left associative) or right to left (right associative). For example, in Perl, the lazy and operator && is left associative so in the expression:

  $i >= 0 && $x[$i] >= 0 && $y[$x[$i]] == 0

the left-most && is evaluated first, whereas = is right associative, so in

  $a = $b = 42

the right-most assignment is performed first.

(2007-06-16)

Nearby terms: associative array « associative memory « Associative Memory Parallel Processing Language « associativity » AST » ASTAP » AST Computers, LLC

FOLDOC, Topics, 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, ?, ALL

©2018 Martin Webb