"be consistent" | |
PerlMonks |
Re^2: OO Pattern Container x Elements and Method Chainingby LanX (Saint) |
on Oct 08, 2021 at 15:17 UTC ( [id://11137348]=note: print w/replies, xml ) | Need Help?? |
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? :)
updateI should have said that ->do_something() needs to do know $cont.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|