37 for (std::size_t i = 0, end = m_scope->m_data.size(); i < end; ++i)
42 os <<
'.' << vm.m_state.m_symbols[m_scope->m_data[i].first] <<
'=';
43 m_scope->m_data[i].second.toString(os, vm);
Subtype of the value type, handling closures.
The virtual machine scope system.
The ArkScript virtual machine.
The ArkScript virtual machine, executing ArkScript bytecode.
const Scope_t & scope() const noexcept
Return the scope held by the object.
Scope_t & refScope() noexcept
Return a reference to the scpoe held by the object.
void toString(std::ostream &os, VM &vm) const noexcept
Print the closure to a string.
Closure() noexcept
Construct a new Closure object.
std::shared_ptr< Scope > Scope_t
Scope handling.