From: Dave Rolsky Date: Sun, 10 Oct 2010 01:04:31 +0000 (-0500) Subject: Remove slide on sharing one object as a default for many objects X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=22ade682eaa339765fddac8a2f155386876b9cdf;p=gitmo%2Fmoose-presentations.git Remove slide on sharing one object as a default for many objects Sigh, I like the joke, but it's not really a useful thing to do --- diff --git a/moose-class/slides/index.html b/moose-class/slides/index.html index 2f3c9d3..cd0f3fd 100644 --- a/moose-class/slides/index.html +++ b/moose-class/slides/index.html @@ -1635,7 +1635,7 @@ requires 'compare';
  • Human @ISA Animal
  • Human does Toolmaker (as does Chimpanzee)
  • Car @ISA Vehicle
  • -
  • Car does HasEngine
  • +
  • Car does Destroyable
  • @@ -1826,22 +1826,6 @@ has packages => (
    -

    What if I Want to Share?

    - -
    package Person;
    -use Moose;
    -
    -my $highlander_bank =
    -    Bank->new(
    -        name => 'Clan MacLeod Trust' );
    -
    -has bank => (
    -    is      => 'rw',
    -    default => sub { $highlander_bank },
    -);
    -
    - -

    Builder