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