</div>
<div class="slide">
+ <h1>Native Delegation</h1>
+
+ <ul>
+ <li>Delegate to <em>unblessed</em> Perl types</li>
+ <li>Scalar, array or hash ref, etc</li>
+ </ul>
+</div>
+
+<div class="slide">
+ <h1>Native Delegation - Array</h1>
+
+ <pre><code>package Person;
+use Moose;
+
+has _favorite_numbers => (
+ traits => [ 'Array' ],
+ is => 'ro',
+ isa => 'ArrayRef[Int]',
+ default => sub { [] },
+ init_arg => undef,
+ <span class="highlight">handles =>
+ { favorite_numbers => 'elements',
+ add_favorite_number => 'push',
+ },</span>
+);</code></pre>
+
+ <ul>
+ <li>Automatically defaults to <code>[]</code></li>
+ </ul>
+</div>
+
+<div class="slide">
+ <h1>Native Delegation - Counter</h1>
+
+ <pre><code>package Stack;
+use Moose;
+
+has depth => (
+ traits => [ 'Counter' ],
+ is => 'ro',
+ isa => 'Int',
+ default => 0,
+ init_arg => undef,
+ <span class="highlight">handles =>
+ { _inc_depth => 'inc',
+ _dec_depth => 'dec',
+ },</span>
+);</code></pre>
+</div>
+
+
+<div class="slide">
<h1>Traits and Metaclasses</h1>
<ul>