Skip to content

Commit

Permalink
Merge pull request #2748 from ngeiswei/relax-check_evaluatable
Browse files Browse the repository at this point in the history
Relax check_evaluatable to allow subtypes of concept and predicate
  • Loading branch information
ngeiswei authored Aug 7, 2020
2 parents f550cb9 + 6d6c9c9 commit 7193809
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opencog/atoms/core/Checkers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ bool check_evaluatable(const Handle& bool_atom)
// Allow conjunction, disjunction and negation of
// predicates. Since it cannot inherit from EVALUATABLE_LINK
// (cause it's a Node) we have to add it here.
if (PREDICATE_NODE == t) continue;
if (h->is_type(PREDICATE_NODE)) continue;

// Allow conjunction, disjunction and negation of concepts as
// well, in that case these are interpreted as intersection,
// union and complement. Since it cannot inherit from
// EVALUATABLE_LINK (cause it's a Node) we have to add it here.
if (CONCEPT_NODE == t) continue;
if (h->is_type(CONCEPT_NODE)) continue;

// Fucking quote links. I hate those with a passion.
if (QUOTE_LINK == t) continue;
Expand Down

0 comments on commit 7193809

Please sign in to comment.