Integrate record accessors and modifiers where convenient.
authorTaylor R Campbell <campbell@mumble.net>
Sat, 9 Feb 2019 16:14:57 +0000 (16:14 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Sat, 9 Feb 2019 17:04:03 +0000 (17:04 +0000)
commit238e03512fb58579bdf78b902ed4c4e83232164a
tree8882b4dfda64c44acf32bd6b4cff8771d1dde9cb
parent8e0f00a824e4d2ba103e5e7464946b63cf05f067
Integrate record accessors and modifiers where convenient.

Limited to record types with:

- a defined predicate name we can pass to GUARANTEE, and
- no parent type so we can statically determine the field offsets.

Obviously it would be better if the compiler could do the flow
analysis to figure out where it can statically partially evaluate
RECORD-ACCESSOR and RECORD-MODIFIER, but, y'know, exercise for the
reader.
src/runtime/mit-macros.scm