UCE Docs / DValue::is_reference

Signature

bool DValue::is_reference() const

Parameters

return value : true when this node itself is a reference node

Reports whether the current node's direct type tag is the internal reference tag. Most read methods dereference automatically; this helper is mainly useful when handling reference-aware runtime state.

Example

DValue target; target.set("x");
DValue ref; ref.set_reference(&target);
DValue plain; plain.set("y");
print(ref.is_reference() ? "ref" : "plain", " / ", plain.is_reference() ? "ref" : "plain", "\n");
Output
ref / plain