On Mon, 14 Mar 2005 15:07:31 EST, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am just trying to find ways to write code more compactly thats all I just > thought an array of functions would be a way to do it but I guess not.
It depends on what you're doing. Take this example: you want to apply a set of filters to an email message, but the order the filters are applied in is not known until runtime. So you would end up with an array of filter functions, each having one type of filter, and you would put the functions into an array in the right order (determined at runtime) and call them in that order. I think it's called the Command Pattern (TM). Manish

