./devel/p5-Function-Parameters, Perl5 subroutine definitions with parameter lists

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.001003, Package name: p5-Function-Parameters-2.001003, Maintainer: pkgsrc-users

This module extends Perl with keywords that let you define functions with
parameter lists. It uses Perl's perlapi/PL_keyword_plugin API, so it works
reliably and doesn't require a source filter.


Required to build:
[devel/p5-Dir-Self] [pkgtools/cwrappers]

Master sites: (Expand)

SHA1: 26b6f19da98298f7973088563006cae9d85d5489
RMD160: 89f1bcbf86609774dc5f85c2e323509bc3a318ba
Filesize: 89.134 KB

Version history: (Expand)


CVS history: (Expand)


   2017-11-16 11:32:36 by Thomas Klausner | Files touched by this commit (1)
Log message:
p5-Function-Parameters: remove comment about failing test

The reason was a pkgsrc patch for perl5; the patch
has been removed.
   2017-11-13 16:10:33 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Function-Parameters: update to 2.001003.

2.001003  2017-11-11
          - Fix threaded initialization issue better. This is the same issue
            that was fixed in 2.001002, but now we use PL_op_mutex instead of
            PL_check_mutex. This has the advantage of also being thread-safe on
            v5.14.

2.001002  2017-11-09
          - Fix crash when Function::Parameters is loaded at runtime by
            multiple threads (a stack overflow due to infinite recursion).
            This is arguably a core bug (#132413). The current workaround
            employed by Function::Parameters slightly abuses an internal perl
            mutex meant for something else (protecting op checkers), but it
            fixes the issue on perls v5.16 .. v5.26.
            v5.14 doesn't have this API yet, so the workaround is not thread
            safe there. It is technically possible to still run into this issue
            if two threads initialize Function::Parameters at the exact same
            moment (I haven't managed to reproduce this yet, so hopefully it's
            unlikely in practice).
            It is possible to completely avoid the problem on all versions of
            perl and Function::Parameters by making sure the module is loaded
            before the first thread is created.
   2017-09-17 12:35:16 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Function-Parameters: update to 2.001001.

2.001001  2017-07-12
          - fix duplicate type check on invocant:
                method foo(T $self: $x) { ... }
                # every call to foo() performs T->check($self) twice
          - clean up how type errors refer to parameters (now it's
            "parameter $N" for non-invocant parameters and \ 
"invocant $N" for
            invocants (or just "invocant" if there is exactly one))
          - rewrite pragma implementation and the way %^H is used
          - remove several internal package variables

2.000007  2017-05-15
          - no real code changes
          - extend bug #129090 workaround to perl 5.25.5
          - try to detect broken Moose installs earlier
          - fix declaration of developer dependencies
   2017-06-05 16:25:36 by Ryo ONODERA | Files touched by this commit (2298)
Log message:
Recursive revbump from lang/perl5 5.26.0
   2017-04-19 14:01:43 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/p5-Function-Parameters to 2.000006
------------------------------------------------
2.000006  2017-04-16
          - work around core bug #129090 / #131146 in perl 5.22 and 5.24:
            perl -e 'use Function::Parameters; \&f; fun f() { eval \ 
"" }' hangs
            in the compiler (also happens with perl -d or Devel::Cover instead
            of eval) (gh #29)

2.000003  2017-03-31
          - fix a bug where method modifiers would inadvertently declare subs
            (e.g. 'before foo() {}' acting like 'sub foo;
            BEGIN { &before('foo', sub {}) }'), breaking Pkg->can($method) and
            thus Class::Method::Modifiers (RT #120804)
          - make method modifiers take effect at runtime because otherwise
            you'd have to wrap every with()/extends() in a BEGIN block to make
            consumed/inherited methods visible to modifiers (RT #120804)
          - make method modifiers require a name (what would an anonymous
            modifier modify?)
          - (hopefully) improve the error message you get for trying to add any
            parameters after a slurpy

2.000002  2017-03-27
          - default to strict mode
          - allow types with multiple arguments (e.g. 'Tuple[Int, String]')
          - implement new 'auto' type reifier and use it by default
          - allow multiple invocants
          - support custom installers
          - implement Moo/Moose-style method modifiers
          - rework and extend import syntax
          - make implicit $self available in default arguments
          - call type reifiers from correct package and remove 2nd arg
            workaround
          - remove :(...) prototype syntax
          - remove undocumented 'attrs' option
          - drop internal Moo dependency
   2017-03-20 10:12:26 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Update devel/p5-Function-Parameters to 1.0706
---------------------------------------------
1.0706  2017-03-17
        - don't require . in @INC during install
        - improve internal code generation functions used on perls before 5.22
(pkgsrc note)
make test fails at t/foreign/Fun/name.t, but the previous version also fails
at the same point, thus update, thank you.
   2016-06-11 14:44:27 by Kamil Rytarowski | Files touched by this commit (3)
Log message:
Import p5-Function-Parameters-1.0705 as devel/p5-Function-Parameters

This module extends Perl with keywords that let you define functions with
parameter lists. It uses Perl's perlapi/PL_keyword_plugin API, so it works
reliably and doesn't require a source filter.

Originally packaged in pkgsrc-wip by myself.

Reviewed by <leot>.