On 10 Feb 2006 08:25:41 +0000, Nick Fortune wrote:
> 
> How about factoring the alias mechanism away from the module alias?
> 
> You could have a command: 
> 
>       AliasModule module-name alias [ alias ... ]
> 
> This way instead of writing 
> 
> 
>       DestroyModuleConfig MonitorPanel: *
>       *MonitorPanel: (1x1, Swallow 'asclock' 'Exec exec asclock')
>       # ...
>       AddToFunc StartFunction
>       + I Module FvwmButtons MonitorPanel
> 
> You'd write
> 
>       AliasModule FvwmButtons MonitorPanel
>       DestroyModuleConfig MonitorPanel
>       *MonitorPanel: (1x1, Swallow 'asclock' 'Exec exec asclock')
>       # ...
>       AddToFunc StartFunction 
>       + I Module MonitorPanel
> 
> Which seems a little clearer.
> 
> That way we get to remove the alias from the module arguments, we can
> deprecate the old usage, and third party modules don't have to use it.
> 
> For the module side of the operation, I'd pass it in the environment as
> already suggested. We get a migration path to a cleaner syntax, and we 
> don't have to break anything.

This is an option to consider, before redesigning the module interface.
However, this syntax will require 2 lines for launching every module,
AliasModule and Module, instead of just Module. And we also need
UnaliasModule. I.e. now the user should predeclare all module instances
he wants to use. I should rething this idea first before agreeing or
disagreeing with it.

Regards,
Mikhael.


Reply via email to