From df58c6cd5c26120a985cca74243fc7978457ff2e Mon Sep 17 00:00:00 2001 From: olpc user Date: Thu, 12 Dec 2019 07:38:19 -0800 Subject: tried to use allocations with level1 ... messy, works, for some reason name of function is output in dump, shows internal problem --- starts/meaning-vm/level-1/concepts.cpp | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'starts/meaning-vm/level-1/concepts.cpp') diff --git a/starts/meaning-vm/level-1/concepts.cpp b/starts/meaning-vm/level-1/concepts.cpp index 890d8b2..be643a9 100644 --- a/starts/meaning-vm/level-1/concepts.cpp +++ b/starts/meaning-vm/level-1/concepts.cpp @@ -1,15 +1,29 @@ #include "concepts.hpp" +#include "funcs.hpp" +#include "../level-0/memorystore.hpp" + namespace intellect { namespace level1 { namespace concepts { -ref nothing("nothing"); -ref is("is"); -ref anonymous("anonymous"); -ref link("link"); -ref name("name"); -ref allocation("allocation"), part("part"), group("group"); +static struct init { init() { + givename(intellect::level0::concepts::allocator(), "allocator"); + givename(intellect::level0::concepts::allocates(), "allocates"); + givename(intellect::level0::concepts::allocations(), "allocations"); + givename(intellect::level0::concepts::level0allocations(), "level0-allocations"); +} } __init; + +ref level1("level1"), allocations("allocations"); +ref is("is", level1-allocations); +ref name("name", level1-allocations); +ref nothing("nothing", level1-allocations); +ref anonymous("anonymous", level1-allocations); +ref link("link", level1-allocations); +ref level0("level0", level1-allocations) , level2("level2", level1-allocations) , level3("level3", level1-allocations) , level4("level4", level1-allocations) , level5("level5", level1-allocations) , level6("level6", level1-allocations) , level7("level7", level1-allocations) , level8("level8", level1-allocations) , level9("level9", level1-allocations); +ref allocator("allocator"), allocates("allocates"); + +ref _false("false", level1-allocations), _true("true", level1-allocations); } } -- cgit v1.2.3