Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Beyond Inside-Out

by shmem (Chancellor)
on May 29, 2007 at 15:12 UTC ( [id://617977]=note: print w/replies, xml ) Need Help??


in reply to Beyond Inside-Out

Wow. This is so simple, elegant and such an obvious way to set up inside out objects (once you have seen it, that is :-), that I wonder why it wasn't done before. I'd like to see that as the standard implementation of inside-out objects in the perl core, but at least up on CPAN.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: Beyond Inside-Out
by Anno (Deacon) on May 29, 2007 at 16:10 UTC
    Thanks for your kind words.

    ... such an obvious way ...

    It is quite obvious once it is understood what needs to be done to make Perl objects play nice with inheritance. From my perspective, the merit goes to the original inside-out implementation where these requirements are met in an ingenious pure-perl way. Doing it by magic is comparatively easy :)

    Anno

      Your merit is simplifying, so that one hasn't to load lengthy Modules or fiddle with lexically scoped hashes and DESTROY subroutines and the like, thus making inside out classes really robust, transparent and elementary. It's all falling into place now, for me.

      Thanks for this great meditation.

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-24 07:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found