extending 'import' using 'with'

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 1 12:40:50 PDT 2015


On Wed, 01 Apr 2015 19:36:53 +0000, Paulo Pinto wrote:

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

as well as libjit and sparse for C, for example. but i will hardly name 
that useful, let alone usable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150401/3f21cfd9/attachment-0001.sig>


More information about the Digitalmars-d mailing list