Thesis on metaprogramming in D

Don Clugston dac at nospam.com.au
Tue Nov 28 04:59:20 PST 2006


Andrey Khropov wrote:
> Steve Horne wrote:
> 
>> My view of the ideal handling of metaprogramming is that it should
>> have access to all the features that are available at runtime. The
>> only languages that I know that genuinely achieve that are the
>> Lisp-alikes such as Scheme.
>>
>> My ideal is being able to define 'quoted' blocks that are parsed and
>> translated to ASTs, with those ASTs being processed by other code to
>> derive new ASTs which are then submitted for the final back-end
>> optimisation and code generation.
> 
> Nemerle does exactly that way!

When I looked at the Nemerle website, I didn't see much that couldn't be 
done easily with D templates. It would be interesting to find something 
it can do, that D can't.




More information about the Digitalmars-d mailing list