On 03.03.2016 07:12, Shriramana Sharma wrote:
string ta(string s) { return s ~ "1"; } template ta(string s) { enum ta = ta(s); }
In `ta(s)` here, `ta` is the enum itself again. It's similar to `int x = x;`. Can't do that, of course.
Add a leading dot to refer to the module level `ta` symbols instead: `enum ta = .ta(s);`.