./devel/p5-Attribute-Lexical, Sane scoping of function/variable attributes

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


Branch: pkgsrc-2016Q3, Version: 0.004nb5, Package name: p5-Attribute-Lexical-0.004nb5, Maintainer: pkgsrc-users

This module manages attributes that can be attached to subroutine and
variable declarations. Although it can be used directly, it is mainly
intended to be infrastructure for modules that supply particular attribute
semantics.

Meanings are assigned to attributes by code which is usually supplied by
modules and which runs at compile time. The built-in mechanism for attribute
control is awkward to use, difficult in particular to enable multiple
attributes supplied by different modules, and it scopes attribute meanings
according to the package of the object to which attributes are being
applied. This module is intended to overcome these limitations.

This module supplies a simple pragma to declare an attribute, associating
the attribute's name with a handler function that implements its semantics.
The declaration is lexically scoped, lasting only until the end of the
enclosing block. A declaration can be overridden, giving an attribute name
a different meaning or making it meaningless, in an inner nested block.


Required to run:
[devel/p5-Params-Classify]

Required to build:
[devel/p5-Module-Build]

Master sites: (Expand)

SHA1: e277d8bf521ce0abbecff6a8dd984e1a710f6a33
RMD160: 82559d6b2da4fcaba6829bdd4ac8e6c6f798f587
Filesize: 13.64 KB

Version history: (Expand)