Lisp HUG Maillist Archive

defmacro utf8 parameter error (bug??)

Unable to parse email body. Email id is 14365

Re: defmacro utf8 parameter error (bug??)

竹子之魂 <2458386286@qq.com> wrote:

> ; why does defmacro give an error saying "#\я is not of type BASE-CHAR." ? Is it a bug?
> (defmacro  л (я) 2)

You could try setting the default character element type to CHARACTER.

Here's what I get on Lispworks for Windows 7.0:

CL-USER 1 > (lw:set-default-character-element-type 'base-char)
BASE-CHAR

CL-USER 2 > (defmacro л (я) 2)

Error: #\я (of type CHARACTER) is not of type BASE-CHAR.
   1 (abort) Return to level 0.
   2 Return to top loop level 0.

Type :b for backtrace or :c <option number> to proceed.
Type :bug-form "<subject>" for a bug report template or :? for other options.

CL-USER 3 : 1 > :c 2

CL-USER 4 > (lw:set-default-character-element-type 'character)
CHARACTER

CL-USER 5 > (defmacro л (я) 2)
л


---
Arthur

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html

Updated at: 2020-12-10 08:31 UTC