From 0a9e019f082578895e4ebc88e4b89188da17947f Mon Sep 17 00:00:00 2001 From: olpc user Date: Tue, 26 Nov 2019 03:15:09 -0800 Subject: removed braces from multilink call, normalized memorystore ref usage per proposal --- starts/meaning-vm/level1.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'starts/meaning-vm/level1.cpp') 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; -- cgit v1.2.3