Login  Register

Re: Bloc Space within a Space

Posted by Pharo Smalltalk Users mailing list on Feb 15, 2016; 8:10pm
URL: https://forum.world.st/Bloc-Space-within-a-Space-tp4877474p4877695.html

Hello again Sean,

looking at your code…now I think that Alex answer was the  right one :)
in fact one should be able to open a world in a world.
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 your code does not make sense regarding how Bloc is designed
you can have one and only one **active** BlocSpace at a time.

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.

>
> s := BlBlocSpace new.
ok
> root := s rootElement.
ok
> root extent: 500 @ 500.
ok

> root
> openInWorld;
> yourself.

this does not make sense for me

> rect := BlElement exampleRectangle.
> rect openInWorld: root world.

this can make sense

> s redraw.
> root updateDrawing.

this canot work also because only the current space can draw.

ok, at least it means that we have to write good documentation about the bloc design.

Cheers
Alain

>
>
>
> -----
> Cheers,
> Sean
> --
> View this message in context: http://forum.world.st/Bloc-Space-within-a-Space-tp4877474.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>