]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blob - Changes
This is 0.32
[perl/modules/Scope-Upper.git] / Changes
1 Revision history for Scope-Upper
2
3 0.32    2019-07-08 12:50 UTC
4         + Fix : [RT #129539] : fails with v5.27.3 and later with DEBUGGING
5                 The module has been amended to accomodate with a change of
6                 behaviour of a core macro.
7         + Upd : Contact info.
8
9 0.31    2018-08-26 19:50 UTC
10         + Fix : [RT #125931] : localized SCALAR doesn't get imported
11                 localize '$Foo::x' => $var now properly imports $x into Foo.
12                 Thanks Vernon Lyon for reporting.
13
14 0.30    2017-11-04 15:55 UTC
15         + Fix : [RT #123481] : Compatibility with CV-in-stash optimisation
16                 Thanks Father Chrysostomos for reporting and contributing a
17                 patch.
18
19 0.29    2016-06-06 12:00 UTC
20         + Chg : A large chunk of boilerplate XS code, which is also used in
21                 other XS modules, has been factored out of the main .xs file
22                 to a collection of .h files in the xsh subdirectory.
23         + Fix : [RT #112246] : Blead breaks Scope::Upper
24                 Dave Mitchell provided a new implementation of reap(),
25                 localize_*() and uplevel() to match the new context stack
26                 handling in perl 5.24. Many thanks to him.
27
28 0.28    2015-08-18 15:00 UTC
29         + Chg : SUB() and EVAL() will now warn if they cannot find an
30                 appropriate context in the current stack. They will still
31                 return undef in this case, which is interpreted as the current
32                 context when combined with other words.
33         + Fix : [RT #104751] : Scope::Upper does not handle exotic stack types
34                 Trying to target a scope above the current perl scope will now
35                 result in a warning. In that case, the topmost context in the
36                 current stack will still be returned.
37                 Thanks Rafaël Garcia-Suarez for the report.
38         + Fix : Test failures of threads tests on systems with harsh resource
39                 constraints causing the threads to exit() during run.
40         + Opt : Some internal structures were shrunk, resulting in memory
41                 savings and small speedups.
42
43 0.27    2015-03-27 22:10 UTC
44         + Chg : The new environment variable to enable thread tests on older
45                 perls is PERL_FORCE_TEST_THREADS. Note that this variable
46                 should only be turned on by authors.
47         + Fix : Segfaults when the module is loaded by several threads (or
48                 Windows emulated processes) ran in parallel.
49         + Fix : Memory leak with the uid() feature.
50         + Fix : Update the Windows ActivePerl + gcc 3.4 workaround for
51                 ExtUtils::MakeMaker 7.04. Thanks Christian Walde for reporting
52                 and feedback on this issue.
53         + Fix : reap(), localize(), localize_elem() and localize_delete()
54                 will again work correctly on perl 5.19.4+ when the debugger
55                 is enabled.
56         + Fix : Silence some compiler warnings.
57
58 0.26    2015-03-12 23:30 UTC
59         + Fix : [RT #100264] : Don't use CvPADLIST on XSUBs
60                 Thanks Father Chrysostomos for reporting and contributing a
61                 patch.
62         + Fix : Be really compatible with the optional OP_PARENT feature.
63
64 0.25    2014-09-21 17:10 UTC
65         + Add : Support for the PERL_OP_PARENT optional feature introduced in
66                 perl 5.21.2.
67         + Fix : Work around an assertion failure in perl 5.21.4.
68
69 0.24    2013-09-10 11:10 UTC
70         + Fix : Lexicals returned with unwind(), yield() and leave() will no
71                 longer be lost on perl 5.19.4 and above.
72
73 0.23    2013-09-02 11:30 UTC
74         This is a maintenance release. The code contains no functional change.
75         Satisfied users of version 0.22 can skip this update.
76         + Fix : [RT #87178] : typo fixes.
77                 Thanks dsteinbrunner@pobox.com for the patch.
78         + Fix : [RT #88177] : 5.19.3 block hint test breakage
79                 t/07-context_info.t has been taught about perl 5.19.3.
80                 Thanks Andrew Main for the patch.
81         + Tst : Author tests are no longer bundled with this distribution.
82                 They are only made available to authors in the git repository.
83         + Tst : "given is experimental" warnings when running tests on perl
84                 5.18 and above have been silenced.
85
86 0.22    2013-01-30 23:35 UTC
87         + Chg : perl 5.6.1 is required.
88         + Fix : context_info() now ignores %warnings::Bits for perl 5.8.6 and
89                 below, just like caller().
90         + Fix : [RT #82220] : Scope-Upper-0.21 test stuck on Windows perl 5.12.3
91                 t/93-pod-spelling.t will not crash anymore on perl 5.12 and
92                 below.
93                 Thanks Gabor Szabo for reporting and Slaven Rezic for debugging
94                 this issue.
95         + Tst : Rare test failures of t/07-context_info.t on perl 5.6,
96                 t/55-yield-target.t on perl 5.[68], and t/63-uplevel-ctl.t on
97                 perl 5.8.[345] have been addressed.
98
99 0.21    2012-09-21 15:10 UTC
100         + Fix : context_info() has been taught about perl 5.17.4.
101         + Fix : t/07-context_info.t will no longer fail with perls that have
102                 sitecustomize enabled (like many perl builds for Windows).
103                 Thanks Steve Hay and Nicholas Clark for debugging help.
104         + Fix : Broken linkage on Windows with gcc 3.4, which appears in
105                 particular when using ActivePerl's default compiler suite.
106                 For those setups, the Scope::Upper shared library will now be
107                 linked against the perl dll directly (instead of the import
108                 library).
109
110 0.20    2012-09-17 11:00 UTC
111         + Add : The new yield(@values, $context) function can be used to return
112                 values to any upper scope, including do or map blocks.
113                 The new leave(@values) function is an alias for
114                 yield(@values, HERE).
115         + Add : The new context_info($context) function return information
116                 about context $context, similarly to what caller() provides
117                 but for any upper scope.
118         + Chg : Contexts are now normalized. In previous versions, it was
119                 possible for different contexts to refer to the same scope :
120                 for example, "for (my $i = 0; $i < 10; ++$i) { ... }" was
121                 reachable through two contexts, while "for (@array) { ... }"
122                 only by one. Starting from this version, contexts are
123                 normalized so that they always represent an actual scope.
124         + Doc : C++ compilers are officially NOT supported.
125         + Fix : Building with a more recent version of perl 5.17.4.
126         + Fix : Debugger compatibility with perl 5.17.1 and above.
127
128 0.19    2012-09-01 13:25 UTC
129         + Doc : POD headings have been made linkable.
130         + Fix : Building with perl 5.17.4.
131         + Fix : BUILD_PREREQS are now set for ExtUtils::MakeMaker.
132         + Opt : uplevel() private data structure is 7% smaller on 64 bits
133                 architectures.
134         + Tst : Author tests overhaul.
135
136 0.18    2011-10-10 20:50 UTC
137         + Add : The uid() function returns an unique identifier for each dynamic
138                 scope. The validate_uid() function can be used to check whether
139                 one such identifier is valid (i.e. that the scope it refers to
140                 is still alive).
141         + Chg : It is no longer possible on perl 5.6 to call goto() in an
142                 uplevel callback to replace the uplevel call. This change was
143                 needed in order to ensure consistency between platforms
144                 regarding to the following fix just below.
145         + Fix : The uplevel() tests now pass on Windows.
146                 Thanks C.H. Kang for bringing this to my attention.
147
148 0.17    2011-10-03 21:45 UTC
149         + Fix : uplevel() will now use the correct pad when executing its
150                 callback. This fixes at least two issues :
151                 - closures defined inside the uplevel callback can now correctly
152                 access lexicals from inside and outside the callback.
153                 - state variables in the uplevel callback now work properly.
154         + Fix : It is now generally possible to call goto() in the uplevel'd
155                 code to replace the uplevel stack frame. There are two cases
156                 for which it is still not possible :
157                 - if -D flags were set when running perl (as in "perl -Dt ...").
158                 - if the perl runloop has been replaced with a custom one by
159                 another module.
160                 If uplevel() detects that the replacement code contains a goto
161                 statement, and is in one of those two cases, then it will refuse
162                 to execute the callback and throw an exception.
163                 Note that this fix implies a run-time overhead of uplevel()
164                 proportional to the size of the the callback in every case
165                 (with a small ratio), and proportional to the size of ALL the
166                 code executed as the result of the uplevel call (including
167                 subroutine calls inside the callback) when a goto statement is
168                 found in the uplevel callback.
169         + Fix : uplevel() has been taught how to handle XS callbacks properly.
170         + Fix : The cause of "Attempt to free unreferenced scalar" warnings
171                 when using uplevel() has been addressed.
172         + Fix : [RT #71212] : build failure on Windows.
173                 The module does no longer rely on calling Perl_cv_clone, which
174                 isn't exported.
175                 Thanks C.H. Kang for reporting.
176
177 0.16    2011-09-03 23:00 UTC
178         + Add : uplevel($code, @args, $cxt) executes $code with arguments @args
179                 in the upper context pointed by $cxt.
180                 This is an XS version of the well-known uplevel() routine from
181                 Sub::Uplevel. There are a few differences between both
182                 implmentations that are listed in the documentation.
183                 The XS version is roughly 10 times faster than the pure-Perl
184                 version.
185
186 0.15    2011-08-24 14:20 UTC
187         + Fix : Localizing subroutines in an higher scope will now correctly
188                 update the method cache.
189
190 0.14    2011-02-27 00:00 UTC
191         + Fix : [RT #64997] : Compatibility with perl 5.13.10.
192                 Thanks Dave Mitchell for the notice.
193         + Tst : Lengthy tests have been ported to Test::Leaner, making the
194                 whole test suite about 50% faster.
195
196 0.13    2010-12-20 01:00 UTC
197         + Fix : [RT #61904] : Stack corruption when using unwind() under
198                 Devel::NYTProf.
199                 Thanks Sergey Aleynikov for contributing a fix.
200         + Fix : [RT #63378] : Compatibility with perl 5.13.8.
201                 Thanks Andreas J. König for bisecting the issue.
202         + Tst : Threads tests are now only run on perl 5.13.4 and higher.
203                 They could segfault randomly because of what seems to be an
204                 internal bug of Perl, which has been addressed in 5.13.4.
205                 There is also an environment variable that allows you to
206                 forcefully run those tests, but it should be set only for
207                 author testing and not for end users.
208
209 0.12    2010-05-19 00:45 UTC
210         + Fix : Compatibility with perl 5.13.
211         + Fix : Test failures with perl 5.8.0.
212         + Fix : A minor leak of SVs when a non array/hash was passed to
213                 localize_elem().
214
215 0.11    2010-04-16 23:20 UTC
216         + Chg : It's now forbiddent to pass a reference to a non-glob variable
217                 as the localization target of localize(), localize_elem() and
218                 localize_delete().
219         + Chg : localize_elem() now only accepts localization of arrays or hashs
220                 elements. For other types, it used to be a synonym of localize.
221         + Chg : localize_elem() no longer accepts a glob as the target. You now
222                 have to specify the variable as a string. This is because it was
223                 impossible in this case to handle meaningfully the array or the
224                 hash reference passed as the assigned value.
225         + Doc : The synopsys was revamped, and the rest of the documentation was
226                 reviewed.
227         + Fix : [RT #55593] : Segfault when localizing hash or array element to
228                 different package in different file.
229                 Thanks Dagfinn Ilmari Mannsåker for reporting.
230         + Fix : [RT #56301] : reap loses eval context when dying naturally.
231                 Thanks Andrew Main for reporting.
232         + Fix : Scope inconsistencies and segfaults when saving several
233                 localizations into the same target scope.
234         + Fix : Stop skipping frames as a pop optimization. This caused breakage
235                 under the debugger (and most likely outside as well).
236
237 0.10    2010-01-18 23:50 UTC
238         + Fix : Properly handle given/when on 5.10.
239         + Fix : Some stack inconsistencies were fixed, though they were unlikely
240                 to have an impact on your real-life code.
241         + Fix : Work around Kwalitee test misfailures.
242
243 0.09    2009-05-17 20:20 UTC
244         + Add : The new SU_THREADSAFE constant can be used to know whether the
245                 module could have been built with thread safety enabled.
246         + Chg : Thread safety is disabled for perl 5.8 on Win32.
247         + Chg : A saner workaround for the "call_sv() during LEAVE clobbers the
248                 still used last popped stack element" issue on 5.10.
249
250 0.08    2009-04-16 22:50 UTC
251         + Fix : [RT #44204] : Stack corruption with reap(). Thanks Torsten
252                 Foertsch for reporting.
253         + Fix : Building with Solaris CC.
254         + Tst : unwind() in threads.
255
256 0.07    2009-02-20 00:20 UTC
257         + Chg : The CLONE method will no longer be defined for non-threaded
258                 perls.
259         + Doc : Some examples on how to build the target context from the words.
260         + Fix : Some unlikely possible uninitialized reads, indirectly pointed
261                 out in a Redhat review request.
262         + Fix : "localize *x, 'y' => $cxt" now matches Perl's behaviour for
263                 "local *x = 'y'".
264         + Fix : Miscellanous code cleanups, courtesy of Florian Ragwitz.
265         + Upd : Resources in META.yml.
266
267 0.06    2009-01-17 00:05 UTC
268         + Chg : INCOMPATIBLE CHANGE: The level is now absolute and no longer
269                 relative to the current frame - we'll call it "context" from now
270                 on. You should replace all your raw levels by combinations of
271                 words.
272                 The old behaviour of "=> $n" can be easily reobtained by using
273                 "=> SCOPE($n)".
274         + Fix : As a result of this change, the module now plays nicely with
275                 the debugger.
276
277 0.05    2009-01-12 18:15 UTC
278         + Fix : Stack mess when using unwind() in scalar context.
279         + Fix : Returning an automatic variable isn't wise, so let's use a
280                 context instead.
281         + Doc : Clarifications.
282         + Tst : Stress tests for unwind().
283
284 0.04    2009-01-11 18:40 UTC
285         + Add : unwind(@things, $level), that returns to an upper context.
286         + Add : want_at($level), that gives the wantarray for $level.
287         + Add : Control words, to reliably get the level of the n-th upper
288                 subroutine or eval scope. TOPLEVEL was renamed to TOP.
289         + Fix : Tests with 5.6.
290         + Tst : Reordering and factoring some of the stress tests so that they
291                 aren't needlessly ran several times.
292
293 0.03    2009-01-04 15:55 UTC
294         + Add : localize_delete(), that localize array/hash elements in upper
295                 scopes.
296         + Fix : Segfault when localizing array elements with an invalid negative
297                 index.
298
299 0.02    2008-12-28 18:40 UTC
300         + Doc : Clarifications and improvements.
301         + Fix : Missing compatibility macros.
302         + Fix : Localized nonexistant array elements should be deleted when
303                 their time comes so that the array recovers its original length.
304
305 0.01    2008-12-26 16:05 UTC
306         First version, released on an unsuspecting world.
307