]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blob - Changes
This is 0.17
[perl/modules/Scope-Upper.git] / Changes
1 Revision history for Scope-Upper
2
3 0.17    2011-10-03 21:45 UTC
4         + Fix : uplevel() will now use the correct pad when executing its                       callback. This fixes at least two issues :
5                 - closures defined inside the uplevel callback can now correctly
6                 access lexicals from inside and outside the callback.
7                 - state variables in the uplevel callback now work properly.
8         + Fix : It is now generally possible to call goto() in the uplevel'd
9                 code to replace the uplevel stack frame. There are two cases
10                 for which it is still not possible :
11                 - if -D flags were set when running perl (as in "perl -Dt ...").
12                 - if the perl runloop has been replaced with a custom one by
13                 another module.
14                 If uplevel() detects that the replacement code contains a goto
15                 statement, and is in one of those two cases, then it will refuse
16                 to execute the callback and throw an exception.
17                 Note that this fix implies a run-time overhead of uplevel()
18                 proportional to the size of the the callback in every case
19                 (with a small ratio), and proportional to the size of ALL the
20                 code executed as the result of the uplevel call (including
21                 subroutine calls inside the callback) when a goto statement is
22                 found in the uplevel callback.
23         + Fix : uplevel() has been taught how to handle XS callbacks properly.
24         + Fix : The cause of "Attempt to free unreferenced scalar" warnings
25                 when using uplevel() has been addressed.
26         + Fix : [RT #71212] : build failure on Windows.
27                 The module does no longer rely on calling Perl_cv_clone, which
28                 isn't exported.
29                 Thanks C.H. Kang for reporting.
30
31 0.16    2011-09-03 23:00 UTC
32         + Add : uplevel($code, @args, $cxt) executes $code with arguments @args
33                 in the upper context pointed by $cxt.
34                 This is an XS version of the well-known uplevel() routine from
35                 Sub::Uplevel. There are a few differences between both
36                 implmentations that are listed in the documentation.
37                 The XS version is roughly 10 times faster than the pure-Perl
38                 version.
39
40 0.15    2011-08-24 14:20 UTC
41         + Fix : Localizing subroutines in an higher scope will now correctly
42                 update the method cache.
43
44 0.14    2011-02-27 00:00 UTC
45         + Fix : [RT #64997] : Compatibility with perl 5.13.10.
46                 Thanks Dave Mitchell for the notice.
47         + Tst : Lengthy tests have been ported to Test::Leaner, making the
48                 whole test suite about 50% faster.
49
50 0.13    2010-12-20 01:00 UTC
51         + Fix : [RT #61904] : Stack corruption when using unwind() under
52                 Devel::NYTProf.
53                 Thanks Sergey Aleynikov for contributing a fix.
54         + Fix : [RT #63378] : Compatibility with perl 5.13.8.
55                 Thanks Andreas J. König for bisecting the issue.
56         + Tst : Threads tests are now only run on perl 5.13.4 and higher.
57                 They could segfault randomly because of what seems to be an
58                 internal bug of Perl, which has been addressed in 5.13.4.
59                 There is also an environment variable that allows you to
60                 forcefully run those tests, but it should be set only for
61                 author testing and not for end users.
62
63 0.12    2010-05-19 00:45 UTC
64         + Fix : Compatibility with perl 5.13.
65         + Fix : Test failures with perl 5.8.0.
66         + Fix : A minor leak of SVs when a non array/hash was passed to
67                 localize_elem().
68
69 0.11    2010-04-16 23:20 UTC
70         + Chg : It's now forbiddent to pass a reference to a non-glob variable
71                 as the localization target of localize(), localize_elem() and
72                 localize_delete().
73         + Chg : localize_elem() now only accepts localization of arrays or hashs
74                 elements. For other types, it used to be a synonym of localize.
75         + Chg : localize_elem() no longer accepts a glob as the target. You now
76                 have to specify the variable as a string. This is because it was
77                 impossible in this case to handle meaningfully the array or the
78                 hash reference passed as the assigned value.
79         + Doc : The synopsys was revamped, and the rest of the documentation was
80                 reviewed.
81         + Fix : [RT #55593] : Segfault when localizing hash or array element to
82                 different package in different file.
83                 Thanks Dagfinn Ilmari Mannsåker for reporting.
84         + Fix : [RT #56301] : reap loses eval context when dying naturally.
85                 Thanks Andrew Main for reporting.
86         + Fix : Scope inconsistencies and segfaults when saving several
87                 localizations into the same target scope.
88         + Fix : Stop skipping frames as a pop optimization. This caused breakage
89                 under the debugger (and most likely outside as well).
90
91 0.10    2010-01-18 23:50 UTC
92         + Fix : Properly handle given/when on 5.10.
93         + Fix : Some stack inconsistencies were fixed, though they were unlikely
94                 to have an impact on your real-life code.
95         + Fix : Work around Kwalitee test misfailures.
96
97 0.09    2009-05-17 20:20 UTC
98         + Add : The new SU_THREADSAFE constant can be used to know whether the
99                 module could have been built with thread safety enabled.
100         + Chg : Thread safety is disabled for perl 5.8 on Win32.
101         + Chg : A saner workaround for the "call_sv() during LEAVE clobbers the
102                 still used last popped stack element" issue on 5.10.
103
104 0.08    2009-04-16 22:50 UTC
105         + Fix : [RT #44204] : Stack corruption with reap(). Thanks Torsten
106                 Foertsch for reporting.
107         + Fix : Building with Solaris CC.
108         + Tst : unwind() in threads.
109
110 0.07    2009-02-20 00:20 UTC
111         + Chg : The CLONE method will no longer be defined for non-threaded
112                 perls.
113         + Doc : Some examples on how to build the target context from the words.
114         + Fix : Some unlikely possible uninitialized reads, indirectly pointed
115                 out in a Redhat review request.
116         + Fix : "localize *x, 'y' => $cxt" now matches Perl's behaviour for
117                 "local *x = 'y'".
118         + Fix : Miscellanous code cleanups, courtesy of Florian Ragwitz.
119         + Upd : Resources in META.yml.
120
121 0.06    2009-01-17 00:05 UTC
122         + Chg : INCOMPATIBLE CHANGE: The level is now absolute and no longer
123                 relative to the current frame - we'll call it "context" from now
124                 on. You should replace all your raw levels by combinations of
125                 words.
126                 The old behaviour of "=> $n" can be easily reobtained by using
127                 "=> SCOPE($n)".
128         + Fix : As a result of this change, the module now plays nicely with
129                 the debugger.
130
131 0.05    2009-01-12 18:15 UTC
132         + Fix : Stack mess when using unwind() in scalar context.
133         + Fix : Returning an automatic variable isn't wise, so let's use a
134                 context instead.
135         + Doc : Clarifications.
136         + Tst : Stress tests for unwind().
137
138 0.04    2009-01-11 18:40 UTC
139         + Add : unwind(@things, $level), that returns to an upper context.
140         + Add : want_at($level), that gives the wantarray for $level.
141         + Add : Control words, to reliably get the level of the n-th upper
142                 subroutine or eval scope. TOPLEVEL was renamed to TOP.
143         + Fix : Tests with 5.6.
144         + Tst : Reordering and factoring some of the stress tests so that they
145                 aren't needlessly ran several times.
146
147 0.03    2009-01-04 15:55 UTC
148         + Add : localize_delete(), that localize array/hash elements in upper
149                 scopes.
150         + Fix : Segfault when localizing array elements with an invalid negative
151                 index.
152
153 0.02    2008-12-28 18:40 UTC
154         + Doc : Clarifications and improvements.
155         + Fix : Missing compatibility macros.
156         + Fix : Localized nonexistant array elements should be deleted when
157                 their time comes so that the array recovers its original length.
158
159 0.01    2008-12-26 16:05 UTC
160         First version, released on an unsuspecting world.
161