Questions tagged [this]
The this tag has no summary.
8 questions
2 votes
1 answer
192 views
How is $this provided in PHP?
I got a fundamental question about the $this keyword in PHP and how it is defined. Pracitcally, I know what it is and what it does. But I am interested in how it is provided / implemented? For example,...
0 votes
1 answer
163 views
Does passing this as argument potentially cause exposure of invalid object state?
This question is based on two premises: First: an object must always have valid state. It is discussed in various posts, too. https://stackoverflow.com/questions/22408804/should-a-c-object-always-be-...
2 votes
2 answers
274 views
Avoid This Pointer
PROBLEM: this points to different instances at different stages of execution (as it should). But it is not always obvious which instance is that. On the other hand we could minimize the use of this, ...
1 vote
2 answers
536 views
C: "this" vs "<instance name>"
I'm using C in a minimal, efficient OOP style to build a game engine. A problem I've begun to face as the engine code settles is my (erstwhile) choice to use this. For example, I have: void ...