guicho271828 / trivia

Pattern Matcher Compatible with Optima
Other
334 stars 22 forks source link

Ignore the candidate functions with multiple arguments in guessing the accessor of class-pattern #57

Closed guicho271828 closed 8 years ago

guicho271828 commented 8 years ago
(defstruct node a b c)

(function a (x y z) (format t "this function is meaningless ~a ~a ~a" a b c))

(match thing
   ((obj :node n)
    ...))
;; ambiguous accessors, candidates: node-a , a
guicho271828 commented 8 years ago

I thought I fixed it in 03fa739 , however the failure case 09c10a5 is only for standard-class and the issue still exists.

guicho271828 commented 8 years ago

fixed in #60 . Introduced perhaps a controversial feature for detecting the arity of a candidate accessor function.