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