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

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.


Georg P. Loczewski 2002-07-20
ORDER NOW!!!