in reply to The visitor pattern

I've added this code to the wikipedia entry (it shows first, then python, then java and c++)