Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: OO Pattern Container x Elements and Method Chaining

by LanX (Saint)
on Oct 08, 2021 at 15:17 UTC ( [id://11137348]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137348]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found