Dios
view release on metacpan or search on metacpan
lib/Dios.pm view on Meta::CPAN
=item C<< Call to %s not in void context >>
A function or method with a signature of C<< --> Void >> was called,
but not in void context.
Either call the function or method in void context, or add alternatives
to the return type specification to also allow for non-void calls.
=item C<< Return value %s of call to %s is not of type Void >>
A function or method with a signature of C<< --> Void >> was called,
but returned a defined value that was thrown away.
Either change the return type specification to allow other values to
be returned, or add a C<return;> to ensure the returned value is
suitably "void".
=item C<< Useless call to %s with explicit return type %s in void context >>
A function or method with a signature that requires an actual return
value was called in void context.
To silence this warning, either specify C<no warnings 'void'> before the
call, or else modify the specified return type to include C<Void> as an
alternative.
=back
Dios uses the Dios::Types module for its type-checking,
so it may also generate any of
L<that module's diagnostics|Dios::Type/DIAGNOSTICS>.
=head1 CONFIGURATION AND ENVIRONMENT
Dios requires no configuration files or environment variables.
=head1 DEPENDENCIES
Requires Perl 5.14 or later.
Requires the Keyword::Declare, Sub::Uplevel,
Dios::Types, and Data::Dump modules.
If the 'is ro' qualifier is used, also requires the Const::Fast module.
If the 'is alias' qualifier is used under Perl 5.20 or earlier,
also requires the Data::Alias module.
=head1 INCOMPATIBILITIES
None reported.
=head1 BUGS AND LIMITATIONS
Shared array or hash attributes that are public cannot be accessed
correctly if the chosen accessor style is C<'lvalue'>, because lvalue
subroutines in Perl can only return scalars.
The module relies on the Keyword::Declare module,
which means that it will not work at all under Perl 5.20
and that, under Perl 5.14 and 5.16, it specifically
needs version 0.3 (NOT version 0.4) of the Keyword::Simple module.
No other bugs have been reported.
Please report any bugs or feature requests to
C<bug-dios@rt.cpan.org>, or through the web interface at
L<http://rt.cpan.org>.
=head1 AUTHOR
Damian Conway C<< <DCONWAY@CPAN.org> >>
=head1 LICENCE AND COPYRIGHT
Copyright (c) 2015, Damian Conway C<< <DCONWAY@CPAN.org> >>. All rights reserved.
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself. See L<perlartistic>.
=head1 DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
( run in 0.695 second using v1.01-cache-2.11-cpan-39bf76dae61 )