Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decorator pattern question
Message
From
18/03/1999 14:14:17
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
18/03/1999 13:39:49
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00199184
Message ID:
00199388
Views:
13
Erik,

Check out the article on WWW.STEVENBLACK.COM

Thanks

Rex

>Maybe I am fuzzy on the terminology here, but usually when you use a ddecorator, aren't you just trying to arrange the environment of the calling object? Why would you want to 'chain' functionality?
>
>When I have used what I thought was the decorator pattern, I ise syntax like:
>
>oDecorator = CREATEOBJECT('MyDecorator', THIS)
>oDecorator.Decorate()
>
>and then the decorator object uses the passed in reference to decorate me.
>
>If I need two decorators for the same calling object I just call another:
>
>oDecorator2 = CREATEOBJECT('MyDecorator2', THIS)
>oDecorator.Decorate()
>
>I don't understand the need to 'chain' them. As a matter of fact, I don't think this is healthy behavior considering what a decorator is supposed to do.
>
>I am probably completely misunderstanding your needs, so please proceed to enlighten me, :-)
Previous
Reply
Map
View

Click here to load this message in the networking platform