[Newcompiler] How does the CaptureVar work

Mathieu Suen mathieusuen at yahoo.fr
Tue Jul 3 12:24:26 UTC 2007


Ok so from the point of view of the Decompiler we should make   
CaptureVar whenever we see a

(thisEnv at: 1)  privStore: ...
(thisEnv at: 1)  privGet: ...

	Mth



On Jul 3, 2007, at 2:15 PM, Marcus Denker wrote:

> There are two types of variables: TempVar and CapturedVar. TempVars  
> are temporaries that are not referenced from blocks.
> Thus in a case like this:
>
> 	| a |
>
> 	[a].
>
> the a would be a captured var, as the block could live longer then  
> the activiation of the method, it needs to be independed of it.
> Instance variables are modeled as Captured Vars, too (receiverVar  
> is then "self").


	

	
		
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com


More information about the Newcompiler mailing list