Getting the error from __traits(compiles, ...)

bearophile bearophileHUGS at lycos.com
Fri Nov 13 08:40:25 PST 2009


Bill Baxter:
> 2) how to get and report errors related to failure to compile some
> code. (this one I hadn't thought of back then)

I'd like a "static foreach" too. Eventually most statements will have a static version. At that point people will start seeing this little duplication in the language and someone may invent a way to throw away all the static versions and allow normal D code to be used at compile time, maybe with a 2-stage compilation or something.
Design is often like that, with phases of expansion of functionality followed by phases of synthesis and generalization.

Bye,
bearophile



More information about the Digitalmars-d mailing list