foreach/opApply is the visitor pattern

Jarrett Billingsley jarrett.billingsley at gmail.com
Fri Jan 30 14:49:35 PST 2009


On Fri, Jan 30, 2009 at 5:35 PM, BCS <ao at pathlink.com> wrote:
> Correct me if I'm wrong but I thing that D's opApply is a form of the
> Visitor pattern where the calling function's stack frame is the visitor
> object.

Yeah.  As far as I know it is.


More information about the Digitalmars-d-learn mailing list