Fixed expression
Syntax
<?fixed={x}?>
-
FixedExpression :
-
<?fixed={ ListExpressionallowIn } ?>
Semantics
Deactivates lookup of dynamic properties (implemented through a meta-method such as meta::get(k) where k includes string or QName) in the enclosed expression.
Note: This is necessary in rare cases where, for example, a dynamic class needs to access internal data. In such cases, instance data are not accessible unless the user uses the fixed expression
<?fixed={x}?>. In the case of lexical name resolution with athisreceiver, the fixed expression is not necessary as in-scope lookup skips dynamic names.
The fixed name lookup effect is propagated:
- From parenthesized expressions to the inner expression
- From dot operator to base expression
- From brackets operator to base expression