On Monday, 26 November 2012 at 17:18:28 UTC, Manu wrote:
the supplementary question is, how do I thendiscover if bar[0] is a symbol or not? I can't see any traits to test forbuiltin types...
Depends on your definition of symbol, but if you mean symbol as in "an alias parameter accepts it", the obvious solution is:
---
template isSymbol(alias S) {
enum isSymbol = true;
}
template isSymbol(S) {
enum isSymbol = false;
}
---
David
