guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tree-IL Questions


From: Andy Wingo
Subject: Re: Tree-IL Questions
Date: Thu, 17 Nov 2011 13:26:37 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Thu 17 Nov 2011 00:46, Noah Lavine <address@hidden> 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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]