Erik,
Check out the article on
WWW.STEVENBLACK.COMThanks
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, :-)