Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decorator pattern question
Message
De
18/03/1999 14:14:17
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
 
À
18/03/1999 13:39:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00199184
Message ID:
00199388
Vues:
17
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, :-)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform