On 08/30/2016 11:28 PM, wobbles wrote:
I'll have to try find a workaround for now :/
This also seems to work, but has a slightly different meaning: ---- class Node(T, alias func = t => t*t) {/* ... */} ---- The default func is a template here. Equivalent to this: ---- auto square(T)(T t) { return t*t; } class Node(T, alias func = square) {/* ... */} ----