[Module] Semantic of 'definedNames'

Henrik Gedenryd h.gedenryd at open.ac.uk
Wed Feb 20 15:40:52 UTC 2002


Bergel Alexandre wrote:

> Hello Henrik and all,
> 
> I do not really understand what is the semantic of 'definedNames' attribute
> for a module.
> It contains classes defined in this module, and submodules. Sometimes it gets
> some troubles, for example if you try to find 'Project' class in a browser,
> you could not get it, because sending 'definitionFor: #Project' on 'Module
> root' return the Project module, and not the class as expected (from browser
> viewpoint).
> 
> Regards,
> Alexandre

It holds all the names (globals) defined by that module. Since there is a
module called Project defined in the root module this will be returned in a
search for all definitions of Project. The same thing would happen for e.g.
Browser. However, this shouldn't happen anymore.

Henrik




More information about the Squeak-dev mailing list