[Bug 570724] New: Review Request: perl-Context-Preserve - Run code after a subroutine call, preserving context

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

 



Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: Review Request: perl-Context-Preserve - Run code after a subroutine call, preserving context

https://bugzilla.redhat.com/show_bug.cgi?id=570724

           Summary: Review Request: perl-Context-Preserve - Run code after
                    a subroutine call, preserving context
           Product: Fedora
           Version: rawhide
          Platform: All
               URL: http://search.cpan.org/dist/Context-Preserve
        OS/Version: Linux
            Status: NEW
          Severity: medium
          Priority: low
         Component: Package Review
        AssignedTo: nobody@xxxxxxxxxxxxxxxxx
        ReportedBy: cweyl@xxxxxxxxxxxxxxx
         QAContact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: notting@xxxxxxxxxx, fedora-package-review@xxxxxxxxxx
   Estimated Hours: 0.0
    Classification: Fedora


Spec URL: http://fedorapeople.org/~cweyl/review/perl-Context-Preserve.spec
SRPM URL:
http://fedorapeople.org/~cweyl/review/perl-Context-Preserve-0.01-1.fc12.src.rpm

Description:
Sometimes you need to call a function, get the results, act on the
results, then return the result of the function. This is painful because
of contexts; the original function can behave different if it's called
in void, scalar, or list context. You can ignore the various cases and
just pick one, but that's fragile. To do things right, you need to see
which case you're being called in, and then call the function in that
context. This results in 3 code paths, which is a pain to type in (and
maintain).  This module automates the process. You provide a coderef that
is the "original function", and another coderef to run after the
original runs. You can modify the return value (aliased to @_) here, and
do whatever else you need to do. 'wantarray' is correct inside both
coderefs; in "after", though, the return value is ignored and the value
'wantarray' returns is related to the context that the original function
was called in.

Koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=2032334

Additional Comment:

This is a new mandatory dependency of the latest GA DBIx::Class (0.08120).

*rt-0.10_01

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review

[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]