Commit 3b3b3d70 authored by Stefan Marr's avatar Stefan Marr

Block>>#restart primitive now uses control flow exception

Signed-off-by: 's avatarStefan Marr <git@stefan-marr.de>
parent 14448cdf
from som.interpreter.control_flow import RestartLoopException
from som.primitives.primitives import Primitives
from som.vmobjects.primitive import Primitive
def _restart(ivkbl, frame, interpreter):
frame.set_bytecode_index(0)
frame.reset_stack_pointer()
raise RestartLoopException()
class BlockPrimitives(Primitives):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment