[squeak-dev] Re: Injecting objects into Workspace bindings

Eliot Miranda eliot.miranda at gmail.com
Thu Mar 17 00:43:25 UTC 2016


On Wed, Mar 16, 2016 at 11:58 AM, Bert Freudenberg <bert at freudenbergs.de>
wrote:

>
> > On 16.03.2016, at 18:48, marcel.taeumel <Marcel.Taeumel at hpi.de> wrote:
> >
> > Mabye we need a simple way to link bindings across tools. Then, for
> example,
> > we could simple connect a Workspace window to the text box in the
> Inspector
> > (resp. Object Explorer) and all would share the same bindings. Then, you
> > could simply select stuff in the Object Explorer, evaluate "x := self"
> and
> > you would have access to x in that other Workspace (resp. Inspector's
> text
> > box).
>
> Not a bad idea … what could be a UI for connecting workspaces?
>

How about a test for Environments?  Create a subclass of Environment with a
singleton called, say, Grabbag.  Implement a doesNotUnderstand: method in
Grabbag that turns one-argument keyword messages such as Grabbag
theSelector: theValue into at: theSelector put: theValue and unary messages
into at: so that Grabbag theSelector is equivalent to Grabbag at:
theSelector.  Then include Grabbag in all workspaces.  From Smalltalk one
can do Grabbag at: #mine put: greedySeagull or Grabbag mineMineMine:
flockOfGreedySeagulls, but in Workspaces (with the default option of
importing Grabbag on) one can simply say dorysLocation :=
#whatWasTheQuestionAgain


- Bert -


_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20160316/92e1ff6c/attachment.htm


More information about the Squeak-dev mailing list