Helpers for boxing, closing, and synchronizing captured lexical variables.
Summary
Functions
Closes over a captured value by copying it into a fresh heap cell.
Ensures a captured value is represented by a heap cell.
Reads the current value of a captured cell, falling back to the provided slot value.
Synchronizes a captured cell with a new local value.
Functions
Closes over a captured value by copying it into a fresh heap cell.
Ensures a captured value is represented by a heap cell.
Reads the current value of a captured cell, falling back to the provided slot value.
Synchronizes a captured cell with a new local value.