Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^4: Designing multiple related modules

by Bod (Parson)
on May 15, 2021 at 20:13 UTC ( [id://11132633]=note: print w/replies, xml ) Need Help??

in reply to Re^3: Designing multiple related modules
in thread Designing multiple related modules

I would expect the constructor of a class to return ... erm ... an object of that same class

Yes...that's kind of obvious but until you mentioned it wasn't front of mind.

Having the constructor return the same class or a subclass of it has been added to my mental list of things to make sure of when creating a new module.

  • Comment on Re^4: Designing multiple related modules

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-05-18 07:28 GMT
Find Nodes?
    Voting Booth?

    No recent polls found