Fixed expression
Syntax
<?fixed={x}?>
-
FixedExpression :
-
<?fixed={ ListExpressionallowIn } ?>
Semantics
Deactivates lookup of dynamic properties (implemented through a shock_proxy proxy such as shock_proxy::get(k) where k includes String or QName) in the enclosed expression.
Note: This is necessary in rare cases where, for example, a class implements its own dynamic properties which may collide with its prototype. In such cases, instance variables are not accessible unless the user uses the fixed expression
<?fixed={exp}?>. In the case ofthis, the fixed expression is not necessary as in-scope lookup always uses fixed name lookup.
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