On Monday, 20 April 2020 at 13:25:14 UTC, Jean-Louis Leroy wrote:
[snip]

That is not a problem. If I was granted two wishes, they would be: 1/ reallocate 'ClassInfo.deallocator' to me ;-) and 2/ add a more general feature to the language, similar to Perl's 'import' function: if a module defines a 'string imported(alias Module)' or a 'mixin template imported(alias Module)', call it in the context of the importing module. That would allow me to get rid of the 'mixin(registerMethods)' after the 'import openmethods'.

I'm skeptical Walter will ever allow something like #2. Probably would have to be part of the language itself to remove mixin(registerMethods).

Reply via email to