digitalmars.D - Inner templates?
- Sean Kelly (9/9) Jun 23 2004 I'd like to do something like this:
I'd like to do something like this: int f() { enum E { e1 } template X( E e : e.e1 ) { alias int vint; } } but i get the error: test.d(3): found 'template' instead of statement test.d(4): unrecognized declaration Pulling everything out of function scope makes it all work.
Jun 23 2004