On Thu 17 Nov 2011 00:46, Noah Lavine <noah.b.lav...@gmail.com> writes:
> - It looks like every Tree-IL type has a src slot, correct? Yes > why doesn't the record-case at module/language/tree-il.scm line 271 > (unparse-tree-il) match those src slots? Record-case parses slots by name, not by position. > Especially since the big > match statement in peval (line 682) does match them (unless it matches > no entries in the record)? Match destructures by position, not by name. > - On a related note, why do most of the Tree-IL record type not appear > in the define-type statement in tree-il.scm line 133, and is that > connected with the borrow-core-vtables macro that I don't understand > at all? :-) Yes. > - Is it guaranteed that the exp slot in a <const> record will always > be a Scheme value, or can it be a Tree-IL expression? It will be a value that can be written using `write' and read using `read'. Where are the docs not up-to-date? In stable-2.0 they should be current. Andy -- http://wingolog.org/