[e-lang] <import> with cycle breaking is not DeepFrozen

Kevin Reid kpreid at mac.com
Mon May 22 07:04:35 EDT 2006


On May 22, 2006, at 0:51, Mark S. Miller wrote:

> I like:
>
>> Proposal #2:
>>
>> Make <import> not marked DeepFrozen.
>>
>> Anything which is to be DeepFrozen would need to not refer to
>> <import>. I'm not sure how bad this would be.
>
> Even with the restriction of proposal #1, <import> isn't really  
> DeepFrozen
> anyway, since it depends on the state of the filesystem at the time  
> a module
> is first imported.

There is a fix for this, which I thought I mentioned before:  
<import>'s access to the filesystem can be through a proxy which  
caches the contents of every file  it reads. <resource> either is or  
also uses this proxy.


Also, here's one consequence: if <import> is not DeepFrozen, then  
safeScope is not, which means that anything which wants to evaluate E  
code in the usual scope is not.

-- 
Kevin Reid                            <http://homepage.mac.com/kpreid/>




More information about the e-lang mailing list