Skip to content

ref dialect

← Dialect reference

Lifetime and identity operations on managed object handles.

Property Value
Bytecode dialect ID 0x26
Registered by default yes
Operations 6

Operations

Operation Summary
ref.borrow Create a pointer to an owner's exact managed payload without consuming the owner.
ref.compare.eq Return true for two null handles or two handles to the same managed payload, and false otherwise.
ref.compare.null Return true when the handle is null and false otherwise.
ref.duplicate Create an independent handle to the same managed payload, preserving its type and null state.
ref.null Create an independent null handle of the declared ref or ptr type.
ref.release End this managed handle's lifetime.