The Trunk: Compiler-cmm.315.mcz

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

The Trunk: Compiler-cmm.315.mcz

commits-2
Chris Muller uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-cmm.315.mcz

==================== Summary ====================

Name: Compiler-cmm.315
Author: cmm
Time: 8 October 2015, 10:16:18.018 am
UUID: 381c9206-c555-4633-a1ec-499bb3bd747a
Ancestors: Compiler-eem.309

Resave change from Tobias with cleaned-up ancestry..

=============== Diff against Compiler-eem.309 ===============

Item was changed:
  ----- Method: Encoder>>bindTemp:in: (in category 'temps') -----
  bindTemp: name in: methodSelector
  "Declare a temporary; error not if a field or class variable."
  scopeTable at: name ifPresent:[:node|
  "When non-interactive raise the error only if its a duplicate"
  (node isTemp or:[requestor interactive])
+ ifTrue:[^self notify:'Name already used in this method']
- ifTrue:[^self notify:'Name is already defined']
  ifFalse:[Transcript
  show: '(', name, ' is shadowed in "' , cue getClass printString , '>>' , methodSelector printString , '")']].
  ^self reallyBind: name!