[squeak-dev] Environments
Colin Putney
colin at wiresong.com
Fri Jun 29 02:00:33 UTC 2012
On Thu, Jun 28, 2012 at 2:34 AM, Michal <michal-list at auf.net> wrote:
>
>> (Environment name: 'Application')
>> importSmalltalk;
>> import: #Seaside aliases: {#Session -> #SeasideSession};
>> import: #Magma aliases: {#Session -> #MagmaSession};
>> fileIn: 'Application.st'.
>
> Enhancement proposal:
>
> how about making this aliasing automatic, happening when the
> 'ambiguous' class is imported to begin with? Eg when Magma is first
> imported (into its own environment), the system is smart enough to
> discover that there are two environments with a class named Session,
> and automatically creates an alias to both of them, by prefixing the
> environment name (Seaside and Magma, respectively) to the class name
> (SeasideSession, MagmaSession).
>
> All users of the Seaside and Magma environments now have access to
> disambiguated names 'for free', without having the responsability to
> manually maintain a list of name-clashes in the world outside
> themselves (ie in the packages they depend on).
That's a great idea. There would have to be a way to turn it off and
keep full control, but yeah, if we have a default policy for
disambiguating that would be really useful. Thanks, Michal!
Colin
More information about the Squeak-dev
mailing list
|