Skip to content
Permalink
Browse files

Issue #23 - Classifier look for .valid? in class without inheritance

  • Loading branch information...
birchb1024 committed Aug 30, 2018
1 parent 4f89b52 commit caf8a5c94a302cf474a0d3e294fefd9cbf0c5bd0
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/classify.g
@@ -12,7 +12,7 @@
#
def classify(klass thing)
cond
(klass (and (bound? ^.valid?) (.valid? thing))) # is the thing a member of this class?
(klass (and (member? ^.valid? klass!vars) (.valid? thing))) # is the thing a member of this class?
define subclass-results nil # analyse sub-classes for matches
map-left (klass.subclasses)
lambda (subklass)

0 comments on commit caf8a5c

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.