X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FLexical%2FTypes.pm;h=1f905e431653d29b98069e8a384adbbaa2b6f7bb;hb=a649807e15b3ab4103dbb51823950c29e7ed9fb4;hp=026596f7ca9c59dcbf27a158e68f8d70d5424f48;hpb=0a0dd81f4af6ef04e4d11604bda2458a06a8577b;p=perl%2Fmodules%2FLexical-Types.git diff --git a/lib/Lexical/Types.pm b/lib/Lexical/Types.pm index 026596f..1f905e4 100644 --- a/lib/Lexical/Types.pm +++ b/lib/Lexical/Types.pm @@ -1,6 +1,6 @@ package Lexical::Types; -use 5.008001; +use 5.008003; use strict; use warnings; @@ -11,13 +11,13 @@ Lexical::Types - Extend the semantics of typed lexicals. =head1 VERSION -Version 0.09 +Version 0.10 =cut our $VERSION; BEGIN { - $VERSION = '0.09'; + $VERSION = '0.10'; } =head1 SYNOPSIS @@ -221,7 +221,7 @@ If you prefer to use constants rather than creating empty packages, you can repl sub import { my $pkg = caller; - for (qw/Str Int/) { + for (qw) { my $type = __PACKAGE__ . '::' . $_; no strict 'refs'; no warnings 'redefine'; @@ -250,6 +250,11 @@ If you prefer to use constants rather than creating empty packages, you can repl True iff the module could have been built with thread-safety features enabled. +=head2 C + +True iff this module could have been built with fork-safety features enabled. +This will always be true except on Windows where it's false for perl 5.10.0 and below . + =head1 CAVEATS The restrictions on the type (being either a defined package name or a constant) apply even if you use the C<'as'> option to redirect to another package, and are unlikely to find a workaround as this happens deep inside the lexer - far from the reach of an extension. @@ -263,7 +268,7 @@ This is due to a shortcoming in the way perl handles the hints hash, which is ad =head1 DEPENDENCIES -L 5.8.1. +L 5.8.3. A C compiler. This module may happen to build with a C++ compiler as well, but don't rely on it, as no guarantee is made in this regard.