diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-11-25 17:55:34 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-11-25 17:55:34 -0800 |
commit | d4976b3e6fddec7a8ee010a6278e5cbe005542b4 (patch) | |
tree | edb6c08843318dcefb4896eca141b7aeff1a78c6 /starts/meaning-vm/level0.cpp | |
parent | 59a4cccd495e925703dbbce74e733efd8e453f16 (diff) | |
download | standingwithresilience-d4976b3e6fddec7a8ee010a6278e5cbe005542b4.tar.gz standingwithresilience-d4976b3e6fddec7a8ee010a6278e5cbe005542b4.zip |
add batch linking via initializer_list, also some missing changes
Diffstat (limited to 'starts/meaning-vm/level0.cpp')
-rw-r--r-- | starts/meaning-vm/level0.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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<int>(numlink, 3); a.vset<std::function<void()>>(codelink, [](){ |