Method CompilerEnvironment()->PikeCompiler()->apply_type_attribute()
- Method apply_type_attribute
boolapply_type_attribute(stringattribute,typea,type|voidb)- Description
Type attribute handler.
- Parameter
attribute Attribute that
ahad.- Parameter
a Type of the value being called.
- Parameter
b Type of the first argument in the call, or UNDEFINED if no more arguments.
Called during type checking when
ahas been successfully had a partial evaluation with the argumentbandahad the type attributeattributebefore the evaluation.The default implementation implements the "deprecated" attribute.
- Returns
Returns
1if the type check should be allowed (ie__attribute__(attribute, a)(b)) is valid, and0(zero) otherwise.- See also