Posted by
pharo on
Jan 18, 2011; 11:43am
URL: https://forum.world.st/Issue-3545-in-pharo-FEATURE-Multiple-Worlds-tp3222698p3222935.html
Comment #1 on issue 3545 by
[hidden email]: FEATURE: Multiple Worlds
http://code.google.com/p/pharo/issues/detail?id=3545Fix in inbox: SLICE-Issue-3545-FEATURE-Multiple-Worlds-SeanDeNigris.1
Added multiple world support as discussed @
http://forum.world.st/Multiple-Worlds-was-Re-Can-I-use-Projects-in-Pharo-td2240869.html
Cleaned up changeset from that post and PasteUpMorph (e.g. removed
references to project)
Add a world:
WorldManager instance createOrSwitchToWorldNamed: 'JustAnotherWorld'.
Return to the default world:
WorldManager instance createOrSwitchToWorldNamed: 'Pharo'.
This may need to be cleaned up e.g. should worlds be named, or numbered
(like Mac Spaces)? Either way, maybe that attribute (or both) should be
encapsulated in PasteUpMorph. But it's working, so we might as well play
with it.
Also, there were methods with no senders in the image
(WorldManager>>switchToWorldNamed:, #createWorldNamed:,
#switchToWorldNamed:, switchToWorldNamed:ifAbsent:, #worlds). I'm not sure
if these methods were intended to be part of a user API or if they should
be removed.
Sean