Undeclared dictionary equivalent?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Undeclared dictionary equivalent?

Paul DeBruicker
Hi -

Does Gemstone or GLASS have an equivalent to Squeak/Pharo's Undeclared
dictionary?


I'm trying to port the Chronos package and in it the method

EnvironmentFacade>>defineVariable: key in: aNamespace withValue: value
constant: constant category: category rebindIfPresent: rebindIfPresent
onCollision: collisionAction

references Undeclared and expects it to be a Dictionary. If I attempt to
inspect or explore Undeclared from a workspace I get 'undefined symbol'
errors.  When the method I mention above is called I get DNU errors and
Undeclared appears to be a Set rather than a Dictionary.  Inspecting
Undeclared in the debugger results in an 'undefined symbol' error.

Thanks

Paul
Reply | Threaded
Open this post in threaded view
|

Re: Undeclared dictionary equivalent?

Dale Henrichs

On Mar 6, 2011, at 8:58 AM, Paul DeBruicker wrote:

> Hi -
>
> Does Gemstone or GLASS have an equivalent to Squeak/Pharo's Undeclared
> dictionary?
>

Not exactly ... I had to hack things a bit to handle Undeclared and what you see is the side effect of that hack ..

Take a look at Tools>>Inspect Undefined Symbols to get a more useful view. The value of the UndefinedSymbol _is_ a set that can tell you where the references are ... it is a hack ... When you run the menu item UndefinedSymbol data structure is cleaned up ...

>
> I'm trying to port the Chronos package and in it the method
>
> EnvironmentFacade>>defineVariable: key in: aNamespace withValue: value
> constant: constant category: category rebindIfPresent: rebindIfPresent
> onCollision: collisionAction
>
> references Undeclared and expects it to be a Dictionary. If I attempt to
> inspect or explore Undeclared from a workspace I get 'undefined symbol'
> errors.  When the method I mention above is called I get DNU errors and
> Undeclared appears to be a Set rather than a Dictionary.  Inspecting
> Undeclared in the debugger results in an 'undefined symbol' error.
>
> Thanks
>
> Paul