in reply to Re^10: Assignable Subroutines
in thread Assignable Subroutines

Ahh, I was right about there being a Pattern for this. It's basically a Visitor Pattern.

"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.

Replies are listed 'Best First'.
Re^12: Assignable Subroutines
by fergal (Chaplain) on Jan 27, 2005 at 21:10 UTC
    The visitor pattern is actually just a symptom of only having single dispatch. Have a look at Visitor pattern considered useless to see what you can do in an OO language that can dispatch methods on more than one arguemnt.