Debian Codegraph @

Changes

raw
1 Revision history for Perl extension Want.
2
3 0.01 Sun Jul 1 18:04:58 2001
4 - original version; created by h2xs 1.1.1.4 with options
5 -A Want
6 - Published to CPAN on 2001-07-15
7
8 0.02 Mon Jul 16 10:06:15 2001
9 - Give correct expectation count for constructs like
10 my ($x, $y, $z) = (23, foo()); # foo's expectation count is 2
11 - want(2) should be true in C<@x = foo()> etc;
12 i.e. infinity > N for any finite N :-)
13 - Support '!' negative requests
14 - correct expectation count for slices
15
16 0.03 Wed Jul 25 12:03:01 BST 2001
17 - Fix documentation snafus
18 - add want('COUNT') as a synonym for C<howmany>
19 and want('REF') for C<wantref>
20 - BOOLEAN context
21 - now compiles & passes tests under ithreads
22 - SCALARREF and OBJECT reference contexts
23 (want('REF') eq 'SCALAR' || want('REF') eq 'OBJECT')
24 - Reorganised test suite
25
26 0.04 Sat Aug 4 09:44:34 BST 2001
27 - 'want' is now exported by default
28 - BOOL is a euphemism for BOOLEAN (Perl 6 compatibility)
29 - ARGUMENTS section added to documentation
30 - excised C++-style comments from the source
31 - fixed the expectation count issue from the BUGS section of 0.03
32 - ASSIGN context. Yeah, baby!
33 - don't throw an error if RVALUE/LVALUE are used from a non-lvalue sub
34 - specifiers can also now be space-separated, e.g.:
35 want('LVALUE ASSIGN');
36
37 0.05 Tue Aug 28 22:14:48 BST 2001
38 - tests pass on 5.6.1 and above
39 - added 'rreturn' and 'lnoreturn' functions
40
41 0.06 Fri Jul 25 11:42:13 BST 2003
42 - pass thread context to Perl_pop_return
43 - remove v-string
44
45 0.07 Mon Aug 18 10:27:27 BST 2003
46 - do not try to call pop_return (it's private)
47 - update copyright year(s) and fix doc glitches
48 - remove spurious || $n eq 'gelem' from _wantref
49 - change i to I32 (rather than U32) to avoid compiler warning
50 on Win32
51
52 0.08 Mon Dec 13 01:23:28 GMT 2004
53 - Accommodate the changed internals of perl 5.9.2
54 (the retstack is no more: see change #23156).
55
56 0.09 Thu Jun 30 15:02:37 BST 2005
57 - Fix a bug reported by Damian: want doesn't work (crashes) if
58 it's called from within the guard of a loop. See the comment
59 above upcontext_plus in Want.xs.
60 - Runs under the debugger!
61 - Give an error message (rather than segfaulting) if called from
62 a tie handler.
63
64 0.10 Sat Mar 25 15:00:41 GMT 2006
65 - Make context propagate through subroutine return
66 - Fix bug whereby want('LVALUE') sometimes gave false positives
67 (see test 58 in t/all.t)
68 - Fix bug whereby want_boolean often gave false positives
69
70 0.11 Sat Aug 26 22:36:27 BST 2006
71 - (Jerry D. Hedden) Fix bug whereby 'lnoreturn' failed to
72 decrement the CvDEPTH, which causes an error with 'use threads'
73
74 0.12 Tue Aug 29 21:06:40 BST 2006
75 - (Jerry D. Hedden) Force the threads test to be skipped if oldstyle
76 threads (as opposed to ithreads) are in use.
77
78 0.13 Tue May 1 21:39:19 BST 2007
79 - Address bug #26847, and add t/methcall.t
80
81 0.14 Fri May 4 12:00:20 BST 2007
82 - Fix bug #26928
83
84 0.15 Sun Jul 15 14:39:15 BST 2007
85 - Fix compiler warning (#26961) -- from Jerry D. Hedden
86 - Fix memory leak in want_assign (#28224)
87
88 0.16 Thu Dec 6 11:15:39 GMT 2007
89 - Make sure there are no ._ files in the tarball
90 - Refuse to run Makefile.PL with Perl < 5.006
91
92 0.17 Sun Feb 3 22:30:30 GMT 2008
93 - Be compatible with internals changes post-5.10 (new loop contexts & CxLVAL)
94
95 0.18 Mon Feb 4 09:35:56 GMT 2008
96 - Code identical to 0.17; eliminate ._files by using gnutar.
97
98 0.19 Sat 30 Jul 2011 17:07:16 BST
99 - Change tests to avoid the new warning 'Useless assignment to a temporary' added in 5.15.
100
101 0.20 Sun 5 Feb 2012 17:43:22 GMT
102 - Remove a test that was testing the behaviour of perl, rather than of this module,
103 and was testing an aspect of perl’s behaviour that has changed (bf8fb5ebd) in
104 in such a way that the test was failing with bleadperl.
105
106 0.21 Wed 29 Feb 2012 16:47:58 GMT
107 - Avoid leaking the RHS of an lnoreturn lvalue sub, thanks to Father Chrysostomos
108 https://rt.cpan.org/Public/Bug/Display.html?id=72083
109
110 0.22 Sun 15 Dec 2013 17:08:35 GMT
111 - Prevent return from being optimised away by newer (>= 5.19.7) Perls.
112 This is a patch supplied by @wolfsage: see
113 https://github.com/robinhouston/Want/pull/1
114
115 0.23 Mon 24 Mar 2014 00:28:36 GMT
116 - Accommodate a bleadperl change to the optree, made in 7d3c8a6837b55fff0e6294ebf8c94a1601367c76.
117 This is bug #94086 for Want, and bug #121342 for perl5.
118
119 0.24 Tue 2 Dec 2014 10:22:39 GMT
120 - Accommodate another bleadperl change. Patch provided by Father Chrysostomos at
121 https://rt.cpan.org/Public/Bug/Display.html?id=100626
122
123 0.25 Wed 10 Dec 2014 19:31:03 GMT
124 - Add support for the new OP_MULTIDEREF
125 Perl has a new op, added as a performance optimisation in fedf30e1c349130b23648c022f5f3cb4ad7928f3,
126 to represent a sequence of array/hash dereferences. This patch adds support for the new op.
127
128 0.26 Tue 28 Apr 2015 12:31:17 BST
129 - There is a new experimental option in bleadperl under which one ought not to use
130 the op_sibling field directly. Quoting from perlguts.pod:
131
132 “ Starting in version 5.21.2, perls built with the experimental
133 define C<-DPERL_OP_PARENT> add an extra boolean flag for each op,
134 C<op_moresib>. When not set, this indicates that this is the last op in an
135 C<OpSIBLING> chain. This frees up the C<op_sibling> field on the last
136 sibling to point back to the parent op. Under this build, that field is
137 also renamed C<op_sibparent> to reflect its joint role. The macro
138 C<OpSIBLING(o)> wraps this special behaviour, and always returns NULL on
139 the last sibling. With this build the C<op_parent(o)> function can be
140 used to find the parent of any op. Thus for forward compatibility, you
141 should always use the C<OpSIBLING(o)> macro rather than accessing
142 C<op_sibling> directly. ”
143
144 Thanks to Reini Urban for the patch.
145
146 0.27 Thu 25 Feb 2016 21:26:04 GMT
147 - perl 5.23.8 breaks the hack we were using to implement double_return.
148
149 This patch from David Mitchell fixes it. See https://rt.cpan.org/Ticket/Display.html?id=112226
150
151 David wrote:
152
153 > Running with a debugging perl-5.23.8 will show assertion failures in the Want test suite. It's because PL_comppad/PL_curpad save/restore is now done by the context stack / cx_popsub() rather than as previously on the savestack / LEAVE.
154
155 > This stops the double_return() 'convert CXt_SUB to CXt_NULL' hack from working properly, as PL_comppad is no longer restored when transitioning from the inner to outer sub. The attached patch substitutes one evil hack for another: it keeps the CXt_SUB context stack entry, but sets its retop field to point to the return op again (rather than its caller) so that the return op gets called twice (with a bit of markstack hackery to ensure there are two marks for the two returns to pop).
156
157 > rreturn and lnoreturn are also a bit under-tested. In particular, there are no tests for rreturn in list context. I added such a test, but more need adding.
158
159 > I can see this hack breaking again in the future. Perhaps in the long term
160 > rreturn() and lnoreturn() should be implemented using custom ops???
161
162 > Dave M.
163
164 0.28 Thu 25 Feb 2016 22:02:42 GMT
165 - Fix test failure in 5.14
166 - Fix test failure in 5.23.9 (using a patch from Slaven Rezic)
167 http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Want-0.26-RT112226.patch
168
169 0.29 Fri 26 Feb 2016 04:42:19 GMT
170 - Restore compatibility with certain older perl versions (5.10 and 5.12)
171
172 It seems that “ATTRS: lvalue” doesn’t work with older perls, but that you can
173 forward-declare the method in Perl code with the :lvalue attribute with the same
174 effect.
175
176 This version of Want is still broken with perl 5.8, for reasons I haven’t investigated.