On 1/23/18 5:52 PM, Steven Schveighoffer wrote:
I don't know the reason. You would think that accessing s would be relative to T.fun's stack frame, and have nothing to do with an instance of T.
using -vcg-ast gives a hint: https://run.dlang.io/is/MZHPTYNote that the T!(s) struct has a void *this member, that is probably the main stack frame pointer.
-Steve