Closed ngeiswei closed 3 years ago
@linas, I'm fairly confident it's correct so I'm gonna merge now.
I have 2 comments however
Handle::operator<
which is content based and Handle::operator==
which is pointer based. This creates problems downstream requiring the sort of fix in that PR.Yes, this looks good to me. I am, however, getting a compiler error:
/home/linas/src/novamente/src/atomspace-git/opencog/atoms/core/Context.cc: In member function ‘bool opencog::Context::is_free_variable(const opencog::Handle&) const’:
/home/linas/src/novamente/src/atomspace-git/opencog/atoms/core/Context.cc:84:11: error: ‘contains’ was not declared in this scope
and not contains(shadow, h);
^~~~~~~~
I'll try to figure this out right now.
Oh, I see, I needed to pull a new cogutil. Got it. Seems to build now. opencog/cogutil#253
is_in
bycontains
Handle::operator==
being non-content based