Method CompilerEnvironment()->PikeCompiler()->index_type_attribute()
- Method
index_type_attribute
bool
index_type_attribute(string
attribute
,type
a
,type
i
)- Description
Type attribute handler.
Called during type checking when a value of the type
a
is indexed with a value of typei
anda
had the type attributeattribute
before the comparison.The default implementation implements the
"deprecated"
and"experimental"
attributes.- Returns
Returns
1
if the type check should be allowed (ie__attribute__(attribute, a)[i]
), and0
(zero) otherwise.- See also