From d4976b3e6fddec7a8ee010a6278e5cbe005542b4 Mon Sep 17 00:00:00 2001 From: olpc user Date: Mon, 25 Nov 2019 17:55:34 -0800 Subject: add batch linking via initializer_list, also some missing changes --- starts/meaning-vm/level0.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'starts/meaning-vm/level0.cpp') diff --git a/starts/meaning-vm/level0.cpp b/starts/meaning-vm/level0.cpp index 1dcc4f7..fa33d71 100644 --- a/starts/meaning-vm/level0.cpp +++ b/starts/meaning-vm/level0.cpp @@ -17,9 +17,11 @@ int main() ref skip = alloc(); - a.set(b, c); - a.link(d, e); - e.link(b, a); + a.link({ + b, c, + d, e + }); + e.set(b, a); c.link(b, e); a.vset(numlink, 3); a.vset>(codelink, [](){ -- cgit v1.2.3