Runtime metaprogramming in D

Dennis Ritchie via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 29 04:52:34 PDT 2015


On Wednesday, 29 April 2015 at 02:20:25 UTC, Vladimir Panteleev 
wrote:
> On Wednesday, 29 April 2015 at 01:38:17 UTC, Dennis Ritchie 
> wrote:
>> Hi,
>> Is it possible to write self-modifying code in D, who will 
>> perform at runtime?
>
> Not easily. Just the obvious approach to invoke the compiler 
> and run/load the created executable / shared library.
>
>> Or is it a characteristic of languages that compile to 
>> bytecode?
>
> I would say that it is a characteristic of languages which 
> provide a compiler-as-a-library.

Thanks.


More information about the Digitalmars-d-learn mailing list