[squeak-dev] How to use pool dictionaries in a workspace?
Bob Arning
arning315 at comcast.net
Tue Mar 5 19:18:35 UTC 2013
Have you tried
Workspace addLookupPool: MyPool
?
Although I wonder why one would go to the trouble. Why not just put the
code in a method that can reference the pool normally?
Cheers,
Bob
On 3/5/13 1:56 PM, Louis LaBrunda wrote:
> Hi,
>
> When I want to use values defined in a pool dictionary in VA Smalltalk, I
> put the following lines at the top of the workspace (I often save
> workspaces for repeat use):
>
> "
> EtWindow defaultEvaluationPools: (EtWindow defaultEvaluationPools asSet
> addAll: #(#PoolDictionaryName)) asArray.
> EtWindow defaultEvaluationPools: nil.
> "
>
> If I execute the first line (not counting the comment " line and not
> wrapped) The named pool dictionary is available to the workspace. I can
> test code as if the pool dictionary were specified for the class and I was
> writing a method. This way when I'm happy with the code, I can just copy
> it to a method and use it as is. The second line puts things back the way
> it was.
>
> I would love to be able to do this with Squeak. Does anyone have any idea
> how to do this with Squeak? Or point me in the right direction?
>
> Lou
> -----------------------------------------------------------
> Louis LaBrunda
> Keystone Software Corp.
> SkypeMe callto://PhotonDemon
> mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130305/4bee8c94/attachment.htm
More information about the Squeak-dev
mailing list
|