summaryrefslogtreecommitdiff
path: root/benchmarks/cmop/lib/MOP/Immutable/Point3D.pm
blob: bf33cf008e0143ff4d53473153ba374b90944381 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

package MOP::Immutable::Point3D;

use strict;
use warnings;
use metaclass;

use base 'MOP::Point';

__PACKAGE__->meta->add_attribute('z' => (accessor => 'z'));

sub clear {
    my $self = shift;
    $self->SUPER::clear();
    $self->z(0);
}

__PACKAGE__->meta->make_immutable;

1;

__END__