For my part, I have the Head First book, and the Decorator section
did not answer the particular questions I had. Nor did the other
sources I read.
Whether something is a "true" design pattern or not is kind of beside
the point, for me; what I want to know is if a particular approach is
good for what I am trying to accomplish: in this case, adding and
removing functionality to an object at runtime.
As for Steve's earlier comment, "It's not a design pattern, it's a
class that uses another design pattern, and poorly, too," thanks for
the reply, but it does nothing to explain why the code is bad, or
what a better approach would be.
My approach is working so far; if it's no good, I'm sure the code
will tell me, soon enough.
For the common good I move that we put this thread to bed,
OK
DAH
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com