[CM] Bug with sort
Pierpaolo Bernardi
olopierpa at gmail.com
Wed Aug 27 08:45:37 PDT 2025
On Wed, Aug 27, 2025 at 12:44 AM <chohag at jtan.com> wrote:
> The same thing happened when I had a more complex key which is where
> I first discovered it:
>
> ./s7load "(define X (hash-table)) (define B 'b) (set! (X '(a b)) 'foo) (display (X '(a ,B)))(newline)"
> #f
>
> > (unquote b) ; no error because it's not evaluated
>
> This is likely to be what's happening and again I'm not sure whether
> this is a bug or expected behaviour from the quote operator.
This is expected behaviour in any lisp.
Don't you want a backquote, insted: `(a ,B) ?
P.
More information about the Cmdist
mailing list