Metaprogramming in D : Some Real-world Examples
Christopher Wright
dhasenan at gmail.com
Wed Nov 11 04:07:07 PST 2009
grauzone wrote:
> You're not testing for types, you're testing if it compiles. Inside the
> tested block of code, all sorts of things could go wrong. You can't know
> if is(typeof(...)) really did what you wanted, or if something broke.
So it requires caution, and you want to keep the contents small. It's
useful, but it requires caution.
More information about the Digitalmars-d-announce
mailing list