Mercurial > pub > Impl
view Lib/IMPL/Object/ArrayObject.pm @ 273:ad93c9f4dd93
+Added support for destructors, (special method named DTOR)
author | sergey |
---|---|
date | Tue, 29 Jan 2013 17:19:10 +0400 |
parents | 4267a2ac3d46 |
children |
line wrap: on
line source
package IMPL::Object::ArrayObject; use strict; use warnings; use parent qw(IMPL::Object::Abstract); sub new { my $class = shift; my $self = bless [], ref $class || $class; $self->callCTOR(@_); return $self; } sub surrogate { return bless [], ref $_[0] || $_; } 1;