2 package Class::Accessor::Chained::Fast;
3 use base 'Class::Accessor::Fast';
6 my($class, $field) = @_;
11 $self->{$field} = (@_ == 1 ? $_[0] : [@_]);
14 return $self->{$field};
18 sub make_wo_accessor {
19 my($class, $field) = @_;
27 Carp::croak("'$caller' cannot access the value of '$field' on ".
28 "objects of class '$class'");
31 $self->{$field} = (@_ == 1 ? $_[0] : [@_]);
41 Class::Accessor::Chained::Fast - Faster, but less expandable, chained accessors
46 use base qw(Class::Accessor::Chained::Fast);
48 # The rest as Class::Accessor::Chained except no set() or get().
52 By analogue to Class::Accessor and Class::Accessor::Fast this module
53 provides a faster less-flexible chained accessor maker.
57 Richard Clamp <richardc@unixbeard.net>
61 Copyright (C) 2003 Richard Clamp. All Rights Reserved.
63 This module is free software; you can redistribute it and/or modify it
64 under the same terms as Perl itself.
68 L<Class::Accessor::Fast>, L<Class::Accessor::Chained>