Voldemort type "this" pointer

realhet real_het at hotmail.com
Wed Apr 21 10:00:51 UTC 2021


Hi,

I noticed that there is a hidden "this" pointer in a struct that 
I declare inside a body of a function.
Also noticed when I use the "static" keyword, the "this" pointer 
disappears.

My question is about what is the "this" pointer for. Is it for 
storing the stack frame of the function in order to be able to 
serve queries that can lazily use the data from the stack frame?

(I guess it's something else because that part of the stack might 
be undefined after exiting from the function.)


More information about the Digitalmars-d-learn mailing list