Method CompilerEnvironment()->PikeCompiler()->pop_type_attribute()
- Method
pop_type_attribute
bool
|type
pop_type_attribute(string
attribute
,type
a
,type
b
,mapping
|void
state
)- Description
Type attribute handler.
Called during type checking when
a <= b
anda
had the type attributeattribute
before the comparison.The default implementation implements the
"deprecated"
and"experimental"
attributes.- Returns
Returns one of:
type
An alternative type for
a
against whichb
will be matched again.int(1)
Allow the check (ie
__attribute__(attribute, a) <= b
).int(0)
Do not allow the check.
- See also