1MooseX::Storage::TraitsU:s:eDrisCaobnMltoeroCisybecuXlt:ee:DdSettPoeercratlgieoD:no:(cT3ur)maeinttsa:t:iDoinsableCycleDetection(3)
2
3
4

NAME

6       MooseX::Storage::Traits::DisableCycleDetection - A custom trait to
7       bypass cycle detection
8

SYNOPSIS

10           package Double;
11           use Moose;
12           use MooseX::Storage;
13           with Storage( traits => ['DisableCycleDetection'] );
14
15           has 'x' => ( is => 'rw', isa => 'HashRef' );
16           has 'y' => ( is => 'rw', isa => 'HashRef' );
17
18           my $ref = {};
19
20           my $double = Double->new( 'x' => $ref, 'y' => $ref );
21
22           $double->pack;
23

DESCRIPTION

25       "MooseX::Storage" implements a primitive check for circular references.
26       This check also triggers on simple cases as shown in the Synopsis.
27       Providing the "DisableCycleDetection" traits disables checks for any
28       cyclical references, so if you know what you are doing, you can bypass
29       this check.
30
31       This trait is applied to all objects that inherit from it. To use this
32       on a per-case basis, see "disable_cycle_check" in
33       MooseX::Storage::Basic.
34
35       See the SYNOPSIS for a nice example that can be easily cargo-culted.
36

METHODS

38   Introspection
39       meta
40

BUGS

42       All complex software has bugs lurking in it, and this module is no
43       exception. If you find a bug please either email me, or add the bug to
44       cpan-RT.
45

AUTHOR

47       Stevan Little <stevan.little@iinteractive.com>
48
50       Copyright 2007-2008 by Infinity Interactive, Inc.
51
52       <http://www.iinteractive.com>
53
54       This library is free software; you can redistribute it and/or modify it
55       under the same terms as Perl itself.
56
57
58
59perl v5.12.0                 Moose2X0:0:9S-t0o7r-a1g4e::Traits::DisableCycleDetection(3)
Impressum