FogBugz (Case [Issue]10652) Compiler Opal - OCBinding set incorrect scope to some copyingTemp

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FogBugz (Case [Issue]10652) Compiler Opal - OCBinding set incorrect scope to some copyingTemp

Pharo Issue Tracker
A FogBugz case was opened by Clement Bera.

Case ID:      10652
Title:        OCBinding set incorrect scope to some copyingTemp
Status:       Work Needed
Category:     Bug
Project:      Compiler Opal
Area:         Misc
Priority:     3 - Must Fix
Milestone:    Pharo3.0: 30/03/2014
Assigned To:  Marcus Denker

URL:          https://pharo.fogbugz.com/default.asp?10652

In this method :

| b |

b := nil asValueHolder.

[ :a | 

    [ 

       [ a contents: 1 ] value. 

       [ a contents: 2 ] value.

    ] value

] value: b

 

in the block [ a contents: 2 ], the variable binding of 'a' has the incorrect scope, it has :

scope of :

    [ 

       [ a contents: 1 ] value. 

       [ a contents: 2 ] value.

    ] value

instead of scope of :

[ :a | 

    [ 

       [ a contents: 1 ] value. 

       [ a contents: 2 ] value.

    ] value

]

 

So for example in AST-interpreter it does not find the correct argument value.


You are subscribed to this case.  If you do not want to receive automatic notifications in the future, unsubscribe (https://pharo.fogbugz.com/default.asp?pre=preUnsubscribe&pg=pgEditBug&command=view&ixBug=10652) from this case.

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker