Arc Forumnew | comments | leaders | submitlogin
3 points by almkglor 5923 days ago | link | parent

Existing frameworks for building this:

http://arclanguage.com/item?id=3762

http://arclanguage.com/item?id=3698

you can also always just overload sref:

  (redef sref (ob v . rest)
    (if (is-perm-table ob) ; need to implement this function
        (if v
            (permset ob (car rest) v)
            (permdel ob (car rest)))
        (apply old ob v rest)))
For example, you might want to use (annotate 'perm-table ...), or better yet just use the settable-fn framework which provides you with 'keys, 'sref, etc. "for free"