openmethods 1.3.0

jmh530 john.michael.hall at gmail.com
Mon Apr 20 13:52:26 UTC 2020


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).


More information about the Digitalmars-d-announce mailing list