Anyone come up with some cool algorithms/templates for D lately?

Robert Fraser fraserofthenight at gmail.com
Fri Apr 18 15:14:00 PDT 2008


Brian Palmer wrote:
> To be honest I was expecting this to be easier than it was. What I thought would be a trivial experiment ended up taking about an hour, most of that time spent trying different approaches to get CTFE to accept my code. CTFE is a wonderful feature but it's still much, much too limited in what code it will accept, in my opinion.

Agreed. CTFE is basically just an interpreter that operates on an 
existing syntax tree, so there's no reason nearly every feature of the 
language can't be supported (mutable global state + CTFE might not be a 
great idea, but dynamic allocation, classes, exceptions, etc. would be 
great to see).



More information about the Digitalmars-d mailing list