next up previous contents index
Next: List Pattern Up: General Programming Patterns and Previous: Closure Pattern   Contents   Index

CLAM Pattern

The CLAM pattern is just an implementation of the general closure pattern in C.

The acronym CLAM stands for: C Lambda Abstraction. A CLAM is therefore an implementation of a lambda abstraction as defined in ARS in the programming language C.

Because a CLAM is an encapsulation of data and procedures (the lambda abstraction with its total environment) it can be compared to an object in object oriented technology. The easy to apply CLAM pattern derived from ARS provides a C programmer with all the whistles and bells functional programming and object oriented programming are justly so proud of.


domain access counter Georg P. Loczewski 2004-03-05