Arc Forumnew | comments | leaders | submitlogin
2 points by CatDancer 5837 days ago | link | parent

obj quotes your key arguments for you (that's the job of obj), so what you want is:

  arc> (= foo (obj (int int) +))
  #hash(((int int . nil) . #<procedure:...t/git/arc/ac.scm:602:9>))
  arc> (foo '(int int))
  #<procedure:...t/git/arc/ac.scm:602:9>
Saying (obj '(int int) ...) will use (quote (int int)) as the key.

Also, there is a bug in arc2 with using lists as keys in a table, to be fixed in the next Arc release. (See http://arclanguage.org/item?id=9151)