guicho271828 / trivia

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

Errors on CCL when a structure slot name has a macro function #100

Closed guicho271828 closed 5 years ago

guicho271828 commented 5 years ago
(defstruct slice begin end step)
...
(match x
  ((slice begin end step)
    ...))

This will try to funcall (symbol-function step), but since step is a macro function "an object of implementation-dependent nature and identity is returned". http://clhs.lisp.se/Body/f_symb_1.htm