Lisp HUG Maillist Archive

bug in quasiquotation?

Hi!

(let ((slots '(a b c))) ``(something ,',@slots))

Lispworks:
'(something a b c)

SBCL and CCL:
`(SOMETHING ,(QUOTE A B C))

with subsequent error when nested quasiquotation is processed.
Good variant is
(let ((slots '(a b c))) ``(something ,@',slots))

I don't insist problem is on Lispworks side.

WBR, budden

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


Re: bug in quasiquotation?

According to the spec `,@form has undefined consequences.
http://www.lispworks.com/documentation/HyperSpec/Body/02_df.htm

That could explain the differences.

May I suggest (let ((slots '(a b c))) `'(something ,@slots)) which
produces a form which, evaluated once more, gives (something a b c) in
both LW and SBCL.

On 6 November 2015 at 19:40, 73budden . <budden73@gmail.com> wrote:
>
> Hi!
>
> (let ((slots '(a b c))) ``(something ,',@slots))
>
> Lispworks:
> '(something a b c)
>
> SBCL and CCL:
> `(SOMETHING ,(QUOTE A B C))
>
> with subsequent error when nested quasiquotation is processed.
> Good variant is
> (let ((slots '(a b c))) ``(something ,@',slots))
>
> I don't insist problem is on Lispworks side.
>
> WBR, budden
>
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html
>

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


Re: bug in quasiquotation?

Thanks!

2015-11-06 13:08 GMT+03:00, Andrew Kirkpatrick <ubermonk@gmail.com>:
> According to the spec `,@form has undefined consequences.
> http://www.lispworks.com/documentation/HyperSpec/Body/02_df.htm
>
> That could explain the differences.
>
> May I suggest (let ((slots '(a b c))) `'(something ,@slots)) which
> produces a form which, evaluated once more, gives (something a b c) in
> both LW and SBCL.
>
> On 6 November 2015 at 19:40, 73budden . <budden73@gmail.com> wrote:
>>
>> Hi!
>>
>> (let ((slots '(a b c))) ``(something ,',@slots))
>>
>> Lispworks:
>> '(something a b c)
>>
>> SBCL and CCL:
>> `(SOMETHING ,(QUOTE A B C))
>>
>> with subsequent error when nested quasiquotation is processed.
>> Good variant is
>> (let ((slots '(a b c))) ``(something ,@',slots))
>>
>> I don't insist problem is on Lispworks side.
>>
>> WBR, budden
>>
>> _______________________________________________
>> Lisp Hug - the mailing list for LispWorks users
>> lisp-hug@lispworks.com
>> http://www.lispworks.com/support/lisp-hug.html
>>
>

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


Re: bug in quasiquotation?

Unable to parse email body. Email id is 13610

Re: bug in quasiquotation?

My package fare-quasiquote comes with a test suite that could probably
be adapted into a portable test suite for quasiquote behavior.

—♯ƒ • François-René ÐVB Rideau •Reflection&Cybernethics• http://fare.tunes.org
If a vegetarian eats vegetables, what does a humanitarian eat? — Mark Twain


On Mon, Nov 9, 2015 at 11:39 AM, Martin Simmons <martin@lispworks.com> wrote:
>
> Hi budden,
>
> Yes, this is a bug -- we will fix it.  As you noted, it will only affect
> broken uses.
>
> --
> Martin Simmons
> LispWorks Ltd
> http://www.lispworks.com/
>
>
>>>>>> On Fri, 6 Nov 2015 12:10:52 +0300, 73budden  said:
>>
>> Hi!
>>
>> (let ((slots '(a b c))) ``(something ,',@slots))
>>
>> Lispworks:
>> '(something a b c)
>>
>> SBCL and CCL:
>> `(SOMETHING ,(QUOTE A B C))
>>
>> with subsequent error when nested quasiquotation is processed.
>> Good variant is
>> (let ((slots '(a b c))) ``(something ,@',slots))
>>
>> I don't insist problem is on Lispworks side.
>>
>> WBR, budden
>>
>> _______________________________________________
>> Lisp Hug - the mailing list for LispWorks users
>> lisp-hug@lispworks.com
>> http://www.lispworks.com/support/lisp-hug.html
>>
>
> _______________________________________________
> Lisp Hug - the mailing list for LispWorks users
> lisp-hug@lispworks.com
> http://www.lispworks.com/support/lisp-hug.html
>

_______________________________________________
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:32 UTC