Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

replace

effect.replace

replace existing effect of type `effect.this` by the new effect value `effect.this`.

This is a convenience feature for value type effects for which the type of
the effect instance equals the effect type. `ref` type effects typically have
values that may be children of the effect type that are of a different type, so
`effect_type.replace new_value` must be used.

replace may only be called during the execution of an operation of a currently instated
effect of the same effect type.
Precondition
pre
  safety: effect.this.is_instated
0.097dev (GIT hash 7935358ec8b7743224ffa00b87fbe7bbf70dc69e)
last changed: 2026-06-12