extending 'import' using 'with'
Paulo Pinto via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 1 12:36:53 PDT 2015
On Wednesday, 1 April 2015 at 19:04:43 UTC, ketmar wrote:
> On Wed, 01 Apr 2015 16:16:58 +0000, Paulo Pinto wrote:
>
>> Actually metaprogramming is how a lot of magic happens in Java
>> and .NET.
>
> without on-the-fly code generation that's a mockery.
You can generate code on the fly as well, that is a common trick
to create, for example, optimized ORMs, regular expression
engines or image processing algorithms that are then compiled to
native code with the JIT.
Runtime reflection, attribute processing, AST manipulation and
bytecode generation can help a lot in meta-programming.
It isn't as easy as D's mixins, but it gets the job done.
More information about the Digitalmars-d
mailing list