in reply to Re^2: OO in Perl 5: still inadequate
in thread OO in Perl 5: still inadequate

I don’t know why something so obvious never occured to me

Don't worry about it. <grin> It happens to all of us at some time or another. Inside-out objects are unusual enough still that it takes a little more effort to pick apart the different angles on it.

In my presentation, I open by stating there are three fundamental concepts for people to take away:

  1. Objects as containers versus objects as indices

  2. Encapsulation via lexical closure

  3. Memory addresses as unique identifiers

Everything else is just combinations and variations of these three ideas.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.