From 014dc185aae42e61cb6d0a6c3033c9cf5f45c732 Mon Sep 17 00:00:00 2001 From: olpc user Date: Tue, 10 Dec 2019 09:07:31 -0800 Subject: files not included --- starts/meaning-vm/habit-starts/learning-parts.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 starts/meaning-vm/habit-starts/learning-parts.cpp (limited to 'starts/meaning-vm/habit-starts/learning-parts.cpp') 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; +})(); -- cgit v1.2.3