1MakeMethods::Emulator::UAscecresCsoonrtFraisbtu(t3e)d PeMralkeDMoectuhmoednst:a:tEimounlator::AccessorFast(3)
2
3
4
6 Class::MakeMethods::Emulator::AccessorFast - Emulate
7 Class::Accessor::Fast
8
10 package Foo;
11
12 use base qw(Class::MakeMethods::Emulator::AccessorFast);
13 Foo->mk_accessors(qw(this that whatever));
14
15 # Meanwhile, in a nearby piece of code!
16 # Emulator::AccessorFast provides new().
17 my $foo = Foo->new;
18
19 my $whatever = $foo->whatever; # gets $foo->{whatever}
20 $foo->this('likmi'); # sets $foo->{this} = 'likmi'
21
23 This module emulates the functionality of Class::Accessor::Fast, using
24 Class::MakeMethods to generate similar methods.
25
26 You may use it directly, as shown in the SYNOPSIS above,
27
28 Furthermore, you may call "use
29 Class::MakeMethods::Emulator::AccessorFast '-take_namespace';" to alias
30 the Class::Accessor::Fast namespace to this package, and subsequent
31 calls to the original package will be transparently handled by this
32 emulator. To remove the emulation aliasing, call "use
33 Class::MakeMethods::Emulator::AccessorFast '-release_namespace'".
34
35 Caution: This affects all subsequent uses of Class::Accessor::Fast in
36 your program, including those in other modules, and might cause
37 unexpected effects.
38
40 See Class::MakeMethods for general information about this distribution.
41
42 See Class::MakeMethods::Emulator for more about this family of
43 subclasses.
44
45 See Class::Accessor::Fast for documentation of the original module.
46
47
48
49perl v5.32.0 2020-07M-a2k8eMethods::Emulator::AccessorFast(3)