ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/CBOR-XS/doc/value-sharing.pod
(Generate patch)

Comparing CBOR-XS/doc/value-sharing.pod (file contents):
Revision 1.2 by root, Thu Nov 28 10:16:50 2013 UTC vs.
Revision 1.3 by root, Thu Nov 28 10:39:06 2013 UTC

135 135
136=head2 A cyclic data structure 136=head2 A cyclic data structure
137 137
138The following cyclic Perl data structure references itself from within 138The following cyclic Perl data structure references itself from within
139itself. Here a decoder will see a reference to the shared value I<before> 139itself. Here a decoder will see a reference to the shared value I<before>
140it has decoded the shared value itself: 140it has completely decoded the shared value:
141 141
142 $data = []; 142 $data = [];
143 $data->[0] = $data; # make the first array eleemnt refer to the array 143 $data->[0] = $data; # make the first array eleemnt refer to the array
144 144
145This data structure is not representable in standard CBOR. Using the value 145This data structure is not representable in standard CBOR. Using the value

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines