Revision history for Lexical-Types
+0.10 2011-01-03 20:35 UTC
+ + Add : The new constant LT_FORKSAFE can be tested to know whether the
+ module will behave nicely when fork()ing. It's currently always
+ true except on Windows where you need perl 5.10.1 for it to be
+ true.
+ + Chg : perl 5.8.3 is now required (instead of 5.8.0).
+ + Fix : Scope leaks under perl 5.8-5.10.0.
+ + Fix : Segmentation faults and misbehaviours in threaded applications.
+ + Fix : Compatibility with perl 5.13.1 and higher.
+ + Fix : Broken linkage on Windows with gcc 3.4, which appears in
+ particular when using ActivePerl's default compiler suite.
+ For those setups, the autovivification shared library will now
+ be linked against the perl dll directly (instead of the import
+ library).
+ + Tst : Threads tests are now only run on perl 5.13.4 and higher.
+ They could segfault randomly because of what seems to be an
+ internal bug of Perl, which has been addressed in 5.13.4.
+ There is also an environment variable that allows you to
+ forcefully run those tests, but it should be set only for
+ author testing and not for end users.
+
0.09 2010-01-03 00:00 UTC
+ Fix : Building and testing with blead.
+ Fix : Unbalanced scopes when skipping a typed declaration.
Lexical::Types - Extend the semantics of typed lexicals.
VERSION
- Version 0.09
+ Version 0.10
SYNOPSIS
{ package Str; }
sub import {
my $pkg = caller;
- for (qw/Str Int/) {
+ for (qw<Str Int>) {
my $type = __PACKAGE__ . '::' . $_;
no strict 'refs';
no warnings 'redefine';
True iff the module could have been built with thread-safety features
enabled.
+ "LT_FORKSAFE"
+ 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 .
+
CAVEATS
The restrictions on the type (being either a defined package name or a
constant) apply even if you use the 'as' option to redirect to another
addressed in perl 5.10.
DEPENDENCIES
- perl 5.8, XSLoader.
+ perl 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.
+
+ XSLoader (standard since perl 5.006).
SEE ALSO
fields.
Thanks Florian Ragwitz for suggesting the use of constants for types.
COPYRIGHT & LICENSE
- Copyright 2009,2010 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.