static function and access frame
Steven Schveighoffer
schveiguy at yahoo.com
Tue Jan 23 22:59:31 UTC 2018
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/MZHPTY
Note that the T!(s) struct has a void *this member, that is probably the
main stack frame pointer.
-Steve
More information about the Digitalmars-d-learn
mailing list