Arc Forumnew | comments | leaders | submitlogin
1 point by cooldude127 6110 days ago | link | parent

yes, like that. there is no reason i can see for a macro to have to call eval except in the MOST EXTREME cases.


2 points by cchooper 6110 days ago | link

Unfortunately, Arc makes this an extreme case. There's just no way to get the exact required behaviour in Arc without using eval.

In Arc:

  arc> (= foo 's)
  s
  arc> (set foo 4)
  4
  arc> foo
  4
  arc> s
  Error: "reference to undefined identifier: _s"
In Common Lisp:

  CL-USER> (setf foo 's)
  S
  CL-USER> (set foo 4)
  4
  CL-USER> foo
  S
  CL-USER> s
  4

-----