charJe / portal

Portable Websocket Server for Common Lisp. THIS PROJECT HAS MOVED
https://git.sr.ht/~charje/cl-portal
Other
28 stars 4 forks source link

DEFCONSTANT used on STRINGS #1

Closed phoe closed 3 years ago

phoe commented 3 years ago

https://github.com/quicklisp/quicklisp-projects/issues/1962#issuecomment-761592698

https://github.com/charJe/portal/blob/7635c372c919e3f2af22fc1a6f2c73af199c232d/portal.lisp#L9-L14

This invokes undefined behavior on redefinition.

Use alexandria:define-constant with a string= test instead.

charJe commented 3 years ago

2c8b759 Thanks for the suggestion, after finally reading SBCL manual (2.3.4 Defining Constants) I understand this issue.