summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/habit-starts/learning-parts.cpp
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2019-12-10 09:07:31 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2019-12-10 09:07:31 -0800
commit014dc185aae42e61cb6d0a6c3033c9cf5f45c732 (patch)
treefc0c3a7371df95bfbdb74f20cc66ddc036d656b3 /starts/meaning-vm/habit-starts/learning-parts.cpp
parent3a054408336ab5754a9da6050bf31110f2211c89 (diff)
downloadstandingwithresilience-014dc185aae42e61cb6d0a6c3033c9cf5f45c732.tar.gz
standingwithresilience-014dc185aae42e61cb6d0a6c3033c9cf5f45c732.zip
files not included
Diffstat (limited to 'starts/meaning-vm/habit-starts/learning-parts.cpp')
-rw-r--r--starts/meaning-vm/habit-starts/learning-parts.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/starts/meaning-vm/habit-starts/learning-parts.cpp b/starts/meaning-vm/habit-starts/learning-parts.cpp
new file mode 100644
index 0000000..eebd054
--- /dev/null
+++ b/starts/meaning-vm/habit-starts/learning-parts.cpp
@@ -0,0 +1,19 @@
+#include "learning-parts.hpp"
+
+using namespace habitstarts;
+using namespace intellect::level1;
+
+static int __init = ([]()->int{
+
+ ahabit(happened-habit,
+ {
+ ref ev = ctx.get(happens);
+ // TODO: perform each associated event
+ });
+
+ ahabit(whenever-habit,
+ {
+ });
+
+ return 0;
+})();