add accessor-primitive?, peval uses it
authorAndy Wingo <wingo@pobox.com>
Mon, 10 Oct 2011 11:23:26 +0000 (13:23 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 10 Oct 2011 12:43:37 +0000 (14:43 +0200)
commitf26c3a93ecc0fdf69139ce86a825f262535554c9
tree53d9abb4c2eb9c196e3ce205032dbf1fbc7298b7
parent751708726bff664e1119396241dab8b99c19bbe0
add accessor-primitive?, peval uses it

* module/language/tree-il/primitives.scm (*primitive-accessors*): New
  set of primitives: those that access mutable memory, but are otherwise
  pure.  Include bytevector references here.
  (accessor-primitive?): New public predicate.

* module/language/tree-il/peval.scm (peval): Refactor to distinguish
  constructor-primitive? from accessor-primitive?.
module/language/tree-il/peval.scm
module/language/tree-il/primitives.scm