compile-time regex redux

renoX renosky at free.fr
Mon Feb 12 06:11:41 PST 2007


Andrei Alexandrescu (See Website For Email) Wrote:
[]
> Au contraire, I think it's a definite step in the right direction. 
> Writing programs that write programs is a great way of doing more with 
> less effort. 

As long as it works yes, but if you need to debug the result, you're most likely going to suffer a lot..
Also this can leads to huge compile time due to code expansion (been there with generated C++ code: 6h compilation time(!) and full compilation needed each time due to the difficulty to track dependencies).

So it is a bit like TNT: a useful tool sure, but a dangerous one too.
renoX




More information about the Digitalmars-d mailing list