ruricolist / spinneret

Common Lisp HTML5 generator
MIT License
369 stars 26 forks source link

Fix "Undefined operator KEYWORD-SET in form ..." error on LispWorks #69

Closed svetlyak40wt closed 1 year ago

svetlyak40wt commented 1 year ago

I've got this compilation error in LispWorks on the latest Spinneret from the GitHub:

Undefined operator KEYWORD-SET in form (KEYWORD-SET :!DOCTYPE :AREA :BASE :BR :COL :COMMAND :EMBED :HR :IMG :INPUT :KEYGEN :LINK :META :PARAM :SOURCE :TRACK :WBR).

The problem is recent changes in tags.lisp file. KEYWORD-SET macro was introduces and is used in the same file. But standard says that compiler might evaluate all toplevel forms only after the whole file compilation.

I've wrapped the macro definition with EVAL-WHEN block and now LispWorks is able to compile file.

ruricolist commented 1 year ago

Thanks!