Inheritance, subsumption, and constructing (C++ question)
Why not? I read the thread in passing and tried to point something out. May or may not be relevant but what the hey. *shrug*Saturn wrote:Visitor? How is that? Too me the proper pattern looks more like flyweight. But this is of no help to throw pattern names around here. ^^
I read this:
"Each loop, I'll iterate through the list, calling an update() function."
and this:
"You see, I need a complex hierarchy of classes, and each class that represents a kind of entity that will exist in the world needs an update() function."
And I just thought "Visitor". Unless I've misunderstood something in the his post.
Again, *shrug*.
What does the debugger tell you? You did use the debugger, didn't you?