XSLoader::load(__PACKAGE__, $VERSION);
}
-=head1 FUNCTIONS
+=head1 METHODS
-=head2 C<< import [ as => [ $prefix | $mangler ] ] >>
+=head2 C<import>
-Magically called when writing C<use Lexical::Types>.
+ use Lexical::Types;
+ use Lexical::Types as => $prefix;
+ use Lexical::Types as => sub { ... }; # = $mangler
+
+Magically called when C<use Lexical::Types> is encountered.
All the occurences of C<my Str $x> in the current lexical scope will be changed to call at each run a given method in a given package.
The method and package are determined by the parameter C<'as'> :
=head2 C<unimport>
-Magically called when writing C<no Lexical::Types>.
+ no Lexical::Types;
+
+Magically called when C<no Lexical::Types> is encountered.
Turns the pragma off.
=cut