Path to this page:
./
devel/p5-Attribute-Lexical,
Sane scoping of function/variable attributes
Branch: pkgsrc-2010Q2,
Version: 0.002,
Package name: p5-Attribute-Lexical-0.002,
Maintainer: pkgsrc-usersThis 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 build:[
devel/p5-Module-Build]
Master sites: (Expand)
SHA1: 8ffa40e7b4849781427c79e819420512b2df7c67
RMD160: 2cf495445e3a865ec6f61c4a18efffd6a8c535d5
Filesize: 13.021 KB
Version history: (Expand)
- (2010-07-05) Package has been reborn
- (2010-07-04) Package added to pkgsrc.se, version p5-Attribute-Lexical-0.002 (created)