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}