The Trunk: Squeak-Version-nice.4729.mcz

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

The Trunk: Squeak-Version-nice.4729.mcz

commits-2
Nicolas Cellier uploaded a new version of Squeak-Version to project The Trunk:
http://source.squeak.org/trunk/Squeak-Version-nice.4729.mcz

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

Name: Squeak-Version-nice.4729
Author: nice
Time: 8 April 2017, 5:51:06.804061 pm
UUID: 9bfa711b-9085-4017-bf05-9472a75394a9
Ancestors: Squeak-Version-nice.4728

Renew the hack for restoring updateStream again (see preamble script). This time move #MethodContext binding in Undeclared.

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

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].
- [Smalltalk globals at: #MethodContext put: Context copy] on: AttemptToWriteReadOnlyGlobal do: [:exc | exc resume: true].
 
  ContextPart instVarAt: 6 put: (ContextPart subclasses select: [:e | e superclass = ContextPart])
  '!


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Squeak-Version-nice.4729.mcz

Nicolas Cellier
Please note that I intentionnally put the hack in this package, though it belongs to Kernel.
But Kernel already has a long descendance...
Choosing a side package avoid rewriting history and/or weird ancestry and/or the necessity to merge parallel branches.
Sorry to leave 2 unsuccessful attempts in the trunk, but I think we can live with it.

2017-04-08 17:51 GMT+02:00 <[hidden email]>:
Nicolas Cellier uploaded a new version of Squeak-Version to project The Trunk:
http://source.squeak.org/trunk/Squeak-Version-nice.4729.mcz

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

Name: Squeak-Version-nice.4729
Author: nice
Time: 8 April 2017, 5:51:06.804061 pm
UUID: 9bfa711b-9085-4017-bf05-9472a75394a9
Ancestors: Squeak-Version-nice.4728

Renew the hack for restoring updateStream again (see preamble script). This time move #MethodContext binding in Undeclared.

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

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].
- [Smalltalk globals at: #MethodContext put: Context copy] on: AttemptToWriteReadOnlyGlobal do: [:exc | exc resume: true].

  ContextPart instVarAt: 6 put: (ContextPart subclasses select: [:e | e superclass = ContextPart])
  '!