Class attributes in memories
Hoping to have a little time this weekend for Brainhat.
Where I was: need to hash class attributes when a memory is restored. Then onto memories, though it may turn out that this is enough to cover local and remote memories. Class attributes look like propositions and attribute assignments to the existing routines. That might be good enough. . Lots of restoration routines in state.c call addtocontext routines. Mproc classdesc() recognizes a class description and hashes it into the rhash in core hash table. classdesc() is only called in one place, in input-patterns, just after addtocontext(). So, perhaps addtocontext() should call it directly.
Hmmm... that might be too simplistic. I'm just looking for a way to apply classdesc() everywhere it needs to go without actually applying it everywhere is needs to go. Maybe adding it to addcctoctxt() and addcctoctxtmotv() would cover all use cases. It might. The call to addtocontext() has to continue as it is because a class description needs to be in the context and hashable so that questions like "are bears hungry" can be answered in addition to "is a white bear hungry." And addtocontext() is already smart enough not to create dirty "bears" (plural) when it encounters "bears are hungry."
So, trying this: invoking classdesc() in addcctoctxt() and addcctoctxtmotv() following the call(s) to addtocontext(). t may require a little bit if spaghetti. The CC pattern that checks for class attributes from a route level is addtoc9.