-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Changes
132 lines (110 loc) · 5.59 KB
/
Changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Revision history for Perl extension Readonly.
{{$NEXT}}
- Workaround argument count message change around perl 5.26 (according to failing CPAN Tester
reports such as https://www.cpantesters.org/cpan/report/846799aa-9e78-11e9-8bc6-d738850d707a)
2.05 2016-06-10T17:03:28Z
- Fix deref when using the stupid and utterly unnecessary Readonly::Clone
2.04 2016-05-07T15:38:37Z
- Quiet compile time warnings about function prototypes and vars being
used only once
2.03 2016-05-06T22:27:44Z
- Rewording some documentation
- No longer require an explicit version of perl in META.json or cpanfile
2.02 2016-05-06T21:56:10Z
- Create mutable clones of readonly structures with Readonly::Clone
- Still not convinced this is useful but... fixes #13
- Minor typo patch from Gregor Herrmann <[email protected]> fixes #21
2.01 2016-02-24T16:01:12Z
- Disallow initialization of Readonly variables by assignment
allowed by Perl prototype changes in v5.16. Assignment initialization
of scalars sets scalar variables to undef and lists and hashes
initialized by assignment are not read only.
2.00 2014-06-30T11:15:05Z
- Deprecation of Readonly::XS as a requirement for fast, readonly
scalars is complete. Report any lingering issues on the tracker
ASAP.
1.61 2014-06-28T11:22:13Z
- Normal constants (strings, numbers) do not appear to be read only to
Internals::SvREADONLY($) but perl itself doesn't miss a beat when you
attempt to assign a value to them. Fixing test regression in
t/general/reassign.t
1.60 2014-06-27T15:59:27Z
- Fix array and hash tie() while in XS mode (exposed by Params::Validate tests)
- Fix implicit undef value regression resolves #8
- Minor documentation fixes (spell check, etc.)
- Patch from Gregor Herrmann <[email protected]> resolves #7
v1.500.0 2014-06-25T19:56:18Z
- PLEASE NOTE: Readonly::XS is no longer needed!
- Again, Readonly::XS is no longer needed.
- Merged typo fix from David Steinbrunner RT#86350/#2
- Merged patch (w/ tests, yay!) from Daniel P. Risse RT#37864
- Upstream magic related bugs were reported to p5p and fixed in perl
itself so we can resolve the following local issues: RT#70167, RT#57382,
RT#29487, RT#36653, RT#24216.
- Reported RT#120122 (tie + smartmatch bug) upstream to p5p. Will
eventually resolve local [RT#59256].
- Note: Resolved RT#16167 (benchmark.pl being installed) in 1.04.
- Use readonly support exposed in Internals on perl >=5.8.x
- Have I mentioned you don't need to install Readonly::XS anymore?
- Checking $Readonly::XSokay is no longer suggested. ...never should have been
1.04 2013-11-26T01:20:38Z
- Module now maintained by Sanko Robinson. Please see TODO for a possible
set of changes to this module that may effect code written for old, pre-
perl 5.14.0 platforms!!!
1.03 2004 April 20
- Changed the prototype for Readonly, to make the usage cleaner.
Unfortunately, this breaks backwards-compatability for this
function. Users of this function who have Perl 5.8 or later
will have to change their source code. Also, users of this
function who upgrade to perl 5.8+ will have to change their
usage. Having discussed this feature change with a number of
people, I felt that breaking compatability was worth the gain
in simplicity of usage.
(Thanks to Damian Conway for the suggestion).
- Removed "use warnings" so the module will work in perl 5.005.
1.02 2003 May 13
- If Readonly::XS is installed, Readonly will use it for
making scalars read-only.
- Callers are now forbidden to tie variables directly. This
prevents sneaky callers from reassigning a variable via
tie.
- Error messages have been changed to be more like Perl's
own "Modification of a read-only value attempted at..."
- Catch and return an error if user tries to pass a constant
to Readonly::Scalar (eg Readonly::Scalar 'hello', 'goodbye')
- Include a simple benchmark script.
- Add a few more test cases. You can never have too many.
- Add a simple benchmark program.
1.01 2003 February 14
- Add some checking to prevent reassignment of Readonly variables.
- Changed my email address in the docs.
1.00 2003 January 7
- No code changes. No bugs or suggestions have been reported
for six months, so the version number is changing to 1.00.
0.07 2002 June 25
- Clean up the code somewhat; remove redundancies; delay
loading Carp.pm until it's needed.
- Fixed the list of EXPORT_OK symbols.
0.06 2002 June 16
- Add Readonly function, to provide a unified (and shorter) way to
create readonly variables. (Thanks to Slaven Rezic for the idea).
- Scalar, Array, and Hash now mark entire data structures as Readonly.
Added Scalar1, Array1, and Hash1 for shallow Readonly protection.
(Thanks to Ernest Lergon for the idea).
- Switch to Test::More and Test::Harness. 134 tests now!
0.05 2002 March 15
- Change name from Constant.pm to Readonly.pm, due to file
naming conflict under Windows.
- Changed docs to match.
- Allow Readonly::Hash to accept a hash reference parameter.
- Works better with older versions of Perl.
- Add many, many test cases to test.pl.
0.04 2002 March 7
- Add top-level Scalar, Array, and Hash functions, so callers
don't have to tie the variables themselves.
0.03 2001 September 9
- documentation changes only.
0.02 2001 September 9
- documentation changes only.
0.01 2001 August 30
- Constant.pm, original version.