in reply to Re: OO Pattern Container x Elements and Method Chaining
in thread OO Pattern Container x Elements and Method Chaining

Elements used to be member of ad most one Container

we coded a lot of method chaining

$cont->get_elem('name')->do_something()

Now Elements can belong to multiple Containers.

we need the old code with method chaining to keep working.

Clearer now? :)

update

I should have said that ->do_something() needs to do know $cont.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery