[Pkg] The Trunk: Squeak-Version-nice.4730.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Apr 8 18:18:21 UTC 2017

Nicolas Cellier uploaded a new version of Squeak-Version to project The Trunk:

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

Name: Squeak-Version-nice.4730
Author: nice
Time: 8 April 2017, 8:17:12.852754 pm
UUID: 315565ef-844e-45b0-8397-057caca5875a
Ancestors: Squeak-Version-nice.4729

Make the MethodContext -> Context transition hack more robust post removal of ContextPart.

=============== Diff against Squeak-Version-nice.4729 ===============

Item was changed:
  (PackageInfo named: 'Squeak-Version') preamble: '"This is a hack to finalize #MethodContext -> Context renaming.
  The #bootstrapContext left two problems:
  1) there is a binding #MethodContext => Context.
  2) ContextPart still think it has Context as subclass, though this one changed its superclass.
  We must make sure that the removal of these class won''t destroy Context."
  Smalltalk globals unbind: #MethodContext.
  [Undeclared at: #MethodContext put: Context copy] on: AttemptToWriteReadOnlyGlobal do: [:exc | exc resume: true].
+ ContextPart ifNil: [^self].
+ ContextPart isBehavior ifFalse: [^self].
  ContextPart instVarAt: 6 put: (ContextPart subclasses select: [:e | e superclass = ContextPart])

More information about the Packages mailing list