pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-Return-Value Polymorphic return values are re...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a0adc29fb399
branches:  trunk
changeset: 531379:a0adc29fb399
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Sun Jul 29 11:45:15 2007 +0000

description:
Polymorphic return values are really useful. Often, we just want to know if
something worked or not. Other times, we'd like to know what the error text
was. Still others, we may want to know what the error code was, and what the
error properties were. We don't want to handle objects or data structures for
every single return value, but we do want to check error conditions in our
code because that's what good programmers do.

When functions are successful they may return true, or perhaps some useful
data. In the quest to provide consistent return values, this gets confusing
between complex, informational errors and successful return values.

This module provides these features with a simple API that should get you what
you're looking for in each contex a return value is used in.

Imported from pkgsrc-wip and packaged by kuli0020%umn.edu@localhost

diffstat:

 devel/p5-Return-Value/DESCR    |  13 +++++++++++++
 devel/p5-Return-Value/Makefile |  18 ++++++++++++++++++
 devel/p5-Return-Value/PLIST    |   1 +
 devel/p5-Return-Value/distinfo |   5 +++++
 4 files changed, 37 insertions(+), 0 deletions(-)

diffs (53 lines):

diff -r 4f66e0d5b094 -r a0adc29fb399 devel/p5-Return-Value/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Return-Value/DESCR       Sun Jul 29 11:45:15 2007 +0000
@@ -0,0 +1,13 @@
+Polymorphic return values are really useful. Often, we just want to know if
+something worked or not. Other times, we'd like to know what the error text
+was. Still others, we may want to know what the error code was, and what the
+error properties were. We don't want to handle objects or data structures for
+every single return value, but we do want to check error conditions in our
+code because that's what good programmers do.
+
+When functions are successful they may return true, or perhaps some useful
+data. In the quest to provide consistent return values, this gets confusing
+between complex, informational errors and successful return values.
+
+This module provides these features with a simple API that should get you what
+you're looking for in each contex a return value is used in.
diff -r 4f66e0d5b094 -r a0adc29fb399 devel/p5-Return-Value/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Return-Value/Makefile    Sun Jul 29 11:45:15 2007 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/07/29 11:45:15 adrianp Exp $
+
+DISTNAME=              Return-Value-1.302
+PKGNAME=               p5-${DISTNAME}
+CATEGORIES=            devel perl5
+MASTER_SITES=          ${MASTER_SITE_PERL_CPAN:=../by-authors/id/R/RJ/RJBS/}
+
+MAINTAINER=            kuli0020%umn.edu@localhost
+HOMEPAGE=              http://search.cpan.org/dist/Return-Value/
+COMMENT=               Polymorphic Return Values
+
+DEPENDS+=              {perl>=5.7.3,p5-Test-Simple>=0.47}:../../devel/p5-Test-Simple
+
+USE_LANGUAGES=         # empty
+PERL5_PACKLIST=                auto/Return/Value/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 4f66e0d5b094 -r a0adc29fb399 devel/p5-Return-Value/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Return-Value/PLIST       Sun Jul 29 11:45:15 2007 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/07/29 11:45:15 adrianp Exp $
diff -r 4f66e0d5b094 -r a0adc29fb399 devel/p5-Return-Value/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Return-Value/distinfo    Sun Jul 29 11:45:15 2007 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/07/29 11:45:15 adrianp Exp $
+
+SHA1 (Return-Value-1.302.tar.gz) = 958a81aff1c3dd16e273ea21f9bc0109de509744
+RMD160 (Return-Value-1.302.tar.gz) = 1d5e9be70bf9e8293ffe17128ef022a1c2390a37
+Size (Return-Value-1.302.tar.gz) = 14072 bytes



Home | Main Index | Thread Index | Old Index