Method CompilerEnvironment()->PikeCompiler()->index_type_attribute()
- Method index_type_attribute
boolindex_type_attribute(stringattribute,typea,typei)- Description
Type attribute handler.
Called during type checking when a value of the type
ais indexed with a value of typeiandahad the type attributeattributebefore the comparison.The default implementation implements the "deprecated" attribute.
- Returns
Returns
1if the type check should be allowed (ie__attribute__(attribute, a)[i]), and0(zero) otherwise.- See also