links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Remove global variable World
Last updated at 3:12 am UTC on 1 December 2017
[squeak-dev] The Inbox: EToys-dtl.316.mcz

commits@source.squeak.org Fri, Dec 1, 2017 at 2:02 AM

David T. Lewis
Fri, Dec 1, 2017 at 2:23 AM
To: squeak-dev@lists.squeakfoundation.org

If this update passes muster, it means that we have completely removed all
dependencies on the global variable World in trunk:

    Smalltalk garbageCollect.
    (CompiledMethod allInstances
           select: [:cm | (cm literals select: [:lit | #World = lit name]) size > 0]).
    ==> #()

It is now possible to do this, after which all project navigation will
continue to work as before:

    Smalltalk removeKey: #World.
    Compiler recompileAll.

After doing the above, put things back to normal with:

    Smalltalk at: #World put: Project current world.