Arc Forumnew | comments | leaders | submitlogin
`(a `(b ,@(c ,x)))
8 points by shida 6278 days ago | 2 comments

  arc> (= x 0)
  0
  arc> `(a `(b ,@(c ,x)))
  Error: "reference to undefined identifier: x"
  arc> :a
  > (define x 1)
  > `(a `(b ,@(c ,x)))
  (a (quasiquote (b (unquote-splicing (c 1)))))
  > (tl2)
  arc> `(a `(b ,@(c ,x)))
  (a (quasiquote (b (unquote-splicing (c 1)))))
Isn't this strange?


5 points by almkglor 6278 days ago | link

It's a bug. Probably comes from the fact that Arc's variables are prepended by _ (for Arc2) or __ (Anarki).

  arc> an-unknown-variable
  Error: "reference to undefined identifier: __an-unknown-variable"
                                             ^
                                             |
                                         This one
Scheme-side 'ac converts quasiquotes by scanning for escaped expressions and converting symbols in those expressions to __, but apparently there's a bug here

-----

2 points by stefano 6278 days ago | link

I think this is a bug.

-----