aarvid / SmackJack

An Ajax Common Lisp Library using parenscript to generate javascript and hunchentoot (for now) as the web server. Basically a fork and refactoring of ht-simple-ajax with an attempt merge ideas and code from ht-ajax.
MIT License
18 stars 2 forks source link

compile error on high safety settings (in sbcl) #4

Open bymoz089 opened 2 weeks ago

bymoz089 commented 2 weeks ago

In sbcl, with high safety settings (sb-ext:restrict-compiler-policy 'safety 3 3), then (ql:quickload "smackjack-demo") fails to load and run the demo, with error message:

unknown type specifier: '(MEMBER :POST :GET)
   [Condition of type SIMPLE-ERROR]

The problematic :type specifiers are in file smackjack.lisp in (defclass ajax-function...:

on line 25

    :type '(member :post :get)

and also on line 31:

    :type '(member :request-object :response-xml :response-text

Removing both quotes before (member ..., would fix the issue.

aarvid commented 2 weeks ago

will look at this soon