Arc Forumnew | comments | leaders | submitlogin
4 points by nlavine 5915 days ago | link | parent

The easiest fix is just to add a line to the literal? function in ac.scm so that it accepts procedures:

  (define (literal? x)
    (or (boolean? x)
        (char? x)
        (string? x)
        (number? x)
        (procedure? x) ; New line!
        (eq? x '())))
However, pg didn't accept it into arc1, so there may be some problem with it that I haven't figured out (or, he might just have ignored it).


1 point by elibarzilay 5915 days ago | link

He also wanted to be able to have hash tables in eval, which is easy to get by adding another line to the above, allowing `hash-table?' as literals.

-----