[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Re: eval and local variables
From: |
John Cowan |
Subject: |
Re: [Chicken-users] Re: eval and local variables |
Date: |
Tue, 8 May 2007 22:36:27 -0400 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Chicken Monk scripsit:
> The way I see it (and which is most likely incorrect :-): regular code
> has access to variables in the current and enclosing scopes, so the
> functionality is already there...
Yes and no. In particular, in compiled code the compiler can notice
exactly which procedures have access to which variables, and only
pass the variables that are actually needed, either as additional
arguments or as a data structure or (in other Schemes) in registers.
If eval were allowed to access locally bound variables, such optimizations
would be impossible.
--
No, John. I want formats that are actually John Cowan
useful, rather than over-featured megaliths that http://www.ccil.org/~cowan
address all questions by piling on ridiculous address@hidden
internal links in forms which are hideously
over-complex. --Simon St. Laurent on xml-dev