diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-11-26 03:15:09 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2019-11-26 03:15:09 -0800 |
commit | 0a9e019f082578895e4ebc88e4b89188da17947f (patch) | |
tree | 2a2017bec3d0450deb086fa6ad92d44b9e025e3b /starts/meaning-vm/level1.cpp | |
parent | d5e8c913a0c3b63ef7eadea41ec1818548f5f4cf (diff) | |
download | standingwithresilience-0a9e019f082578895e4ebc88e4b89188da17947f.tar.gz standingwithresilience-0a9e019f082578895e4ebc88e4b89188da17947f.zip |
removed braces from multilink call, normalized memorystore ref usage per proposal
Diffstat (limited to 'starts/meaning-vm/level1.cpp')
-rw-r--r-- | starts/meaning-vm/level1.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/starts/meaning-vm/level1.cpp b/starts/meaning-vm/level1.cpp index 9dee4a7..ae70b5a 100644 --- a/starts/meaning-vm/level1.cpp +++ b/starts/meaning-vm/level1.cpp @@ -15,26 +15,26 @@ int main() decls(structure, function, argument, position); decls(variable, provide); - (make-linked).link({ + (make-linked).link( is, habit, - needs, a(structure).link({ + needs, a(structure).link( is, function-argument, argument-position, ref(1), a(variable, A), provide, a(variable, B), provide, a(variable, C), provide - }) - }); - movetoname(a(link), A-B-C-linked).link({ + ) + ); + movetoname(a(link), A-B-C-linked).link( link-source, A, link-type, B, link-target, C - }); + ); a(not, not-A-B-C-linked).set(topic, A-B-C-linked); - (make-linked).link({ + (make-linked).link( assumes, not-A-B-C-linked, makes, A-B-C-linked - }); + ); std::cout << (make-linked).dump("dumped", true) << std::endl; |