Debian Codegraph @

debian/control

raw symbols SCIP
1 Source: libclass-std-storable-perl
2 Section: perl
3 Priority: optional
4 Maintainer: Debian QA Group <[email protected]>
5 Build-Depends: debhelper (>= 9.20120312)
6 Build-Depends-Indep: libclass-std-perl (>= 0.0.4),
7 libmodule-build-perl,
8 perl
9 Standards-Version: 3.9.6
10 Homepage: https://metacpan.org/release/Class-Std-Storable
11 Vcs-Git: https://salsa.debian.org/debian/libclass-std-storable-perl.git
12 Vcs-Browser: https://salsa.debian.org/debian/libclass-std-storable-perl
13
14 Package: libclass-std-storable-perl
15 Architecture: all
16 Depends: ${misc:Depends}, ${perl:Depends},
17 libclass-std-perl (>= 0.0.4)
18 Description: Support for creating serializable "inside-out" classes
19 Class::Std introduced the "inside-out" model for classes (perldoc Class::Std
20 for details). Among its salient features is complete encapsulation; that is,
21 an object's data may only be accessed via its methods, unlike the usual
22 hashref model that permits direct access by any code whatsoever. However, the
23 drawback of complete encapsulation is that normal mechanisms for
24 serialization won't work, as they rely on direct access to an object's
25 attributes.
26 .
27 This class provides the class-building functionality from Class::Std, and in
28 addition provides an interface to allow Storable to freeze and thaw any
29 declared attributes of this class and any superclasses that were built via
30 Class::Std::Storable.
31 .
32 However, in order to let Storable save attributes and construct the object,
33 it is necessary to expose the attributes of the class to the world. Thus, any
34 code could use the same interface that Storable does to get a copy of object
35 attributes and create new objects with arbitrary attributes without going
36 through the constructor. While the interface CAN'T be used to replace the
37 existing attributes of an object, it COULD be used to create an arbitrarily
38 mutated clone of an object without going through its methods. Also, if
39 attributes are themselves references, then the objects to which they refer
40 can be obtained and modified.