&this pointer
Derek Parnell
derek at psych.ward
Sat Feb 10 15:44:19 PST 2007
The phrase "&this" returns the address of the hidden 'this' parameter
passed to the member functions. In other words, you are seeing the address
of a parameter on the stack.
If you are trying to get the address of the class instance, the phrase
"cast(void *)this"
seems to work, but I'm sure there are other techniques too.
--
Derek Parnell
Melbourne, Australia
"Justice for David Hicks!"
skype: derek.j.parnell
More information about the Digitalmars-d-learn
mailing list