The Trunk: Compiler-mt.536.mcz
| Newsgroups | gmane.comp.lang.smalltalk.squeak.general |
|---|---|
| Message-ID | <[email protected]> |
Marcel Taeumel uploaded a new version of Compiler to project The Trunk: http://source.squeak.org/trunk/Compiler-mt.536.mcz ==================== Summary ==================== Name: Compiler-mt.536 Author: mt Time: 7 August 2026, 5:45:05.513073 pm UUID: 27a5d884-5f7a-3845-a69d-789a494a5047 Ancestors: Compiler-ct.535 Enable warnings for variable shadowing. =============== Diff against Compiler-ct.535 =============== Item was changed: ----- Method: ShadowedVariableNotification class>>enableInteractiveWarning (in category 'preferences') ----- enableInteractiveWarning <preference: 'Interactive warning for shadowed variable' category: #Compiler description: 'When enabled, notify the user interactively about a shadowed variable name. When disabled, just log the incident on the Transcript.' type: #Boolean> + ^ EnableInteractiveWarning ifNil: [true]! - ^ EnableInteractiveWarning ifNil: [false]! Item was changed: + (PackageInfo named: 'Compiler') postscript: 'ShadowedVariableNotification enableInteractiveWarning: true.'! - (PackageInfo named: 'Compiler') postscript: '"below, add code to be run after the loading of this package" - - "recompile any and all SistaV1 compiled methods that refer to special literals. These literals were mistakenly included in the literal frame. saves about 200k bytes in a normal 64-bit Squeak image" - | e nm | - e := EncoderForSistaV1 new. - nm := 0. - ''Recompiling'' - displayProgressFrom: 1 - to: CompiledMethod instanceCount - during: - [:bar| - self systemNavigation allSelect: - [:m| | r | - bar value: (nm := nm + 1). - m encoderClass == EncoderForSistaV1 ifTrue: - [ - r := false. - m codeLiteralsDo: - [:cl| - cl literalsDo: [:l| (e isSpecialLiteralForPush: l) ifTrue: [r := true]]]. - r ifTrue: - [nm := nm + 1. - m methodClass recompile: m selector]]. - false]]'! Squeak-dev mailing list -- [email protected] To unsubscribe send an email to [email protected]