summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level1.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'starts/meaning-vm/level1.cpp')
-rw-r--r--starts/meaning-vm/level1.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/starts/meaning-vm/level1.cpp b/starts/meaning-vm/level1.cpp
index 2e005e2..9498ddf 100644
--- a/starts/meaning-vm/level1.cpp
+++ b/starts/meaning-vm/level1.cpp
@@ -38,11 +38,11 @@ int main()
);
(make-linked).fset(
act,
- (std::function<void(ref)>)[](ref args)
+ (std::function<void(ref)>)[&](ref args)
{
- ref source = args.get("A");
- ref type = args.get("B");
- ref target = args.get("C");
+ ref source = args[A];
+ ref type = args[B];
+ ref target = args[C];
std::cout << "Linking " << source.name() << " by " << type.name() << " to " << target.name() << std::endl;
source.link(type, target);
}
@@ -51,7 +51,7 @@ int main()
std::cout << (make-linked).dump("dumped", true) << std::endl;
decls(apple, fruit);
- (make-linked).get(act)
+ (make-linked)[act]
(a(function-argument)
.link(
A, apple,