Re: Bloc Space within a Space
Posted by
Sean P. DeNigris on
Feb 16, 2016; 2:28am
URL: https://forum.world.st/Bloc-Space-within-a-Space-tp4877474p4877733.html
Pharo Smalltalk Users mailing list wrote
looking at your code…now I think that Alex answer was the right one :)
Hopefully I can convince you otherwise ;)
Pharo Smalltalk Users mailing list wrote
in fact one should be able to open a world in a world.
That was always a wish of mine in Morphic, however in Bloc, the equivalent is a space, not a Bloc world. A Bloc world only holds the objects on the desktop, not the halos or hand.
Pharo Smalltalk Users mailing list wrote
one should be able to script a space,
thus, one should be able to write a test with a local BlocSpace, adding elements into it and so on
But how to drive it? e.g. simulate events
Pharo Smalltalk Users mailing list wrote
but your code does not make sense regarding how Bloc is designed
you can have one and only one **active** BlocSpace at a time.
I understand from a Pharo perspective that one is only expected to have one *real* space at a time which is receiving hardware events and such, but what prevents us from simulating Spaces?! If there is a SpaceElement, and Elements can be placed in the World, the principle of uniformity encourages that a SpaceElement can be placed there like any other.
Pharo Smalltalk Users mailing list wrote
imagine that a BlocSpace is a Pharo image.
Making your code working would mean that we would be
able to run a Pharo image within a Pharo image.
Exactly, like the VM simulator! Sign me up! This was the level of uniformity and explorability that I always wished in Morphic
Cheers,
Sean