summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-2
diff options
context:
space:
mode:
authoruser <user@localhost.localdomain>2019-12-26 13:31:23 -0800
committeruser <user@localhost.localdomain>2019-12-26 13:31:23 -0800
commit1c0b4c8ea8e32dddef0da99bbac546952bb20e44 (patch)
tree45b7c1f593df2f80f07727ff04d6ad53a23f3eef /starts/meaning-vm/level-2
parentdc2779f5a7ceb226620f39e728b73b028cb17c10 (diff)
downloadstandingwithresilience-1c0b4c8ea8e32dddef0da99bbac546952bb20e44.tar.gz
standingwithresilience-1c0b4c8ea8e32dddef0da99bbac546952bb20e44.zip
wip
Diffstat (limited to 'starts/meaning-vm/level-2')
-rw-r--r--starts/meaning-vm/level-2/funcs.cpp1
-rw-r--r--starts/meaning-vm/level-2/habits.cpp6
2 files changed, 4 insertions, 3 deletions
diff --git a/starts/meaning-vm/level-2/funcs.cpp b/starts/meaning-vm/level-2/funcs.cpp
index 3ecedb3..b11413f 100644
--- a/starts/meaning-vm/level-2/funcs.cpp
+++ b/starts/meaning-vm/level-2/funcs.cpp
@@ -21,6 +21,7 @@ ref makehabit(ref name, std::initializer_list<ref> argnames, std::function<void(
ref habit = level1::a(concepts::habit, name);
ref infn = a(habit-information-needed);
habit.set(information-needed, infn);
+ //habit.set(concepts::habit, concepts::habit);
ref posinf = infn;
for (auto argname : argnames) {
ref nextinf = a(habit-information);
diff --git a/starts/meaning-vm/level-2/habits.cpp b/starts/meaning-vm/level-2/habits.cpp
index dfb9014..4900daf 100644
--- a/starts/meaning-vm/level-2/habits.cpp
+++ b/starts/meaning-vm/level-2/habits.cpp
@@ -189,12 +189,12 @@ int createhabits()
ahabit(list-entry-unmake, ((list-entry, le)),
{
ref prev = (list-entry-previous)(le);
- ref next = (list-entry-next)(le);
+ ref n = (list-entry-next)(le);
if (prev != nothing) {
- set(prev, "next", next);
+ set(prev, next, n);
}
if (next != nothing) {
- set(next, "previous", prev);
+ set(n, previous, prev);
}
(concept-unmake)(le);
});