From: Vincent Pit Date: Fri, 21 Sep 2012 15:09:54 +0000 (+0200) Subject: This is 0.21 X-Git-Tag: v0.21^0 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=ef9df3bbd464ffac7b3308d923cd94ff67e98a11;p=perl%2Fmodules%2FScope-Upper.git This is 0.21 --- diff --git a/Changes b/Changes index 1b94133..e1c7fc5 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,16 @@ Revision history for Scope-Upper +0.21 2012-09-21 15:10 UTC + + Fix : context_info() has been taught about perl 5.17.4. + + Fix : t/07-context_info.t will no longer fail with perls that have + sitecustomize enabled (like many perl builds for Windows). + Thanks Steve Hay and Nicholas Clark for debugging help. + + Fix : Broken linkage on Windows with gcc 3.4, which appears in + particular when using ActivePerl's default compiler suite. + For those setups, the Scope::Upper shared library will now be + linked against the perl dll directly (instead of the import + library). + 0.20 2012-09-17 11:00 UTC + Add : The new yield(@values, $context) function can be used to return values to any upper scope, including do or map blocks. diff --git a/META.json b/META.json index 65c01ce..4ab1b3d 100644 --- a/META.json +++ b/META.json @@ -57,5 +57,5 @@ "url" : "http://git.profvince.com/?p=perl%2Fmodules%2FScope-Upper.git" } }, - "version" : "0.20" + "version" : "0.21" } diff --git a/META.yml b/META.yml index 468b3c3..b7bfdfa 100644 --- a/META.yml +++ b/META.yml @@ -32,4 +32,4 @@ resources: homepage: http://search.cpan.org/dist/Scope-Upper/ license: http://dev.perl.org/licenses/ repository: http://git.profvince.com/?p=perl%2Fmodules%2FScope-Upper.git -version: 0.20 +version: 0.21 diff --git a/README b/README index 46c4cc0..1e4c0a4 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME Scope::Upper - Act on upper scopes. VERSION - Version 0.20 + Version 0.21 SYNOPSIS "reap", "localize", "localize_elem", "localize_delete" and "WORDS" : @@ -273,11 +273,11 @@ FUNCTIONS unwind @values, $context; Returns @values *from* the subroutine, eval or format context pointed by - or just above $context, and immediately restart the program flow at this - point - thus effectively returning @values to an upper scope. If @values - is empty, then the $context parameter is optional and defaults to the - current context (making the call equivalent to a bare "return;") ; - otherwise it is mandatory. + or just above $context, and immediately restarts the program flow at + this point - thus effectively returning @values to an upper scope. If + @values is empty, then the $context parameter is optional and defaults + to the current context (making the call equivalent to a bare "return;") + ; otherwise it is mandatory. The upper context isn't coerced onto @values, which is hence always evaluated in list context. This means that @@ -295,7 +295,7 @@ FUNCTIONS yield @values, $context; Returns @values *from* the context pointed by or just above $context, - and immediately restart the program flow at this point. If @values is + and immediately restarts the program flow at this point. If @values is empty, then the $context parameter is optional and defaults to the current context ; otherwise it is mandatory. @@ -325,8 +325,8 @@ FUNCTIONS Immediately returns @values from the current block, whatever it may be (besides a "s///e" substitution context). "leave" is actually a synonym - for "unwind HERE", while "leave @values" is a synonym for "yield - @values, HERE". + for "yield HERE", while "leave @values" is a synonym for "yield @values, + HERE". Like for "yield", you can use the fifth value returned by "context_info" to handle context coercion. @@ -358,7 +358,7 @@ FUNCTIONS and format contexts. When $context is omitted, it defaults to the current context. - The values returned are, in order : + The returned values are, in order : * *(index 0)* : the namespace in use when the context was created ; diff --git a/lib/Scope/Upper.pm b/lib/Scope/Upper.pm index 57e312d..0fa3534 100644 --- a/lib/Scope/Upper.pm +++ b/lib/Scope/Upper.pm @@ -9,13 +9,13 @@ Scope::Upper - Act on upper scopes. =head1 VERSION -Version 0.20 +Version 0.21 =cut our $VERSION; BEGIN { - $VERSION = '0.20'; + $VERSION = '0.21'; } =head1 SYNOPSIS