Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

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


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

Thanks a lot, again.

my Moo(se)->skills are still limited

I don't think the overload is really necessary, I don't mind if two Wrapper::Elements identify differently

handles intrigues me, do you know how it's implemented?

Unfortunately we have a performance issue, too.

and

> # <- and any other Element methods.

means the delegated methods must be listed explicitly and updated when Element grows in methods? °

That's why I mentioned AUTOLOAD and/or inheritance in the OP.

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

UPDATE

according to https://metacpan.org/pod/Moose#REGEXP I can dynamically filter all methods needed to be delegated at compiletime :)

Replies are listed 'Best First'.
Re^5: OO Pattern Container x Elements and Method Chaining
by choroba (Cardinal) on Oct 08, 2021 at 18:04 UTC
    > according to https://metacpan.org/pod/Moose#REGEXP I can dynamically filter all methods needed to be delegated at compiletime :)

    That's a Mooseism not present in Moo.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2024-04-25 01:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found