@@ -245,29+245,31 @@ If you prefer to use constants rather than creating empty packages, you can repl
sub new { ... }
sub new { ... }
-=head1 CAVEATS
+=head1 CONSTANTS
-For C<perl> to be able to parse C<my Str $x>, you need :
+=head2 C<LT_THREADSAFE>
-=over 4
+True iff the module could have been built with thread-safety features enabled.
-=item *
+=head1 CAVEATS
-either the C<Str> package to be defined ;
+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.
-=item *
+Only one mangler or prefix can be in use at the same time in a given scope.
-or for C<Str> to be a constant sub returning a valid defined package.
+The implementation was tweaked to work around several limitations of vanilla C<perl> pragmas : it's thread safe, and doesn't suffer from a C<perl 5.8.x-5.10.0> bug that causes all pragmas to propagate into C<require>d scopes.
-=back
+With 5.8 perls, the pragma does not propagate into C<eval STRING>.
+This is due to a shortcoming in the way perl handles the hints hash, which is addressed in perl 5.10.
-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.
+=head1 DEPENDENCIES
-Only one mangler or prefix can be in use at the same time in a given scope.
+L<perl> 5.8.1.
-=head1 DEPENDENCIES
+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.
-L<perl> 5.8, L<XSLoader>.
+L<XSLoader> (standard since perl 5.006).
=head1 SEE ALSO
=head1 SEE ALSO
@@ -301,7+303,7 @@ Thanks Florian Ragwitz for suggesting the use of constants for types.
=head1 COPYRIGHT & LICENSE
=head1 COPYRIGHT & LICENSE
-Copyright 2009 Vincent Pit, all rights reserved.
+Copyright 2009,2010,2011 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.