From c2ed17faa6aa9f8420128d2713c5b557ab333466 Mon Sep 17 00:00:00 2001 From: olpc user Date: Fri, 22 Nov 2019 17:55:18 -0800 Subject: use refs for temporaries, which means pulling them out of containers --- starts/meaning-vm/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'starts/meaning-vm/main.cpp') diff --git a/starts/meaning-vm/main.cpp b/starts/meaning-vm/main.cpp index b8d0e02..f8e4ec0 100644 --- a/starts/meaning-vm/main.cpp +++ b/starts/meaning-vm/main.cpp @@ -10,10 +10,10 @@ void dumpconcept(ref r) declrefs(dumped, name); for (auto & l : r->links) { - if (l.first == name) { + if (ref(l.first) == name) { continue; } - cout << r << " " << l.first << " " << l.second << endl; + cout << r << " " << ref(l.first) << " " << ref(l.second) << endl; } if (!r->linked(dumped)) { r[dumped = true]; -- cgit v1.2.3