[Newcompiler] How does the CaptureVar work

Marcus Denker denker at iam.unibe.ch
Tue Jul 3 12:27:37 UTC 2007


On 03.07.2007, at 14:24, Mathieu Suen wrote:

> 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: ...
>

Yes.

> 	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

	Marcus
--
Marcus Denker  --  denker at iam.unibe.ch
http://www.iam.unibe.ch/~denker



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/newcompiler/attachments/20070703/b47c6c06/attachment.htm


More information about the Newcompiler mailing list