Top "This" questions

Keyword that refers to the current class instance or object in many object-oriented programming languages.

C++ using this pointer in constructors

In C++, during a class constructor, I started a new thread with this pointer as a parameter which will be …

c++ constructor multithreading this
How can I use $(this) inside of Fancybox's onComplete event?

I'm trying to use jQuery's $(this) inside of Fancybox's onComplete event, but I'm running into trouble. Here's my javascript code: $(…

javascript jquery events fancybox this
C++ equivalent to Java this

In Java you can refer to the current object by doing: this.x = x. How do you do this in …

java c++ this
Ignore certain TypeScript compile errors?

I am wondering if there is a way to ignore certain TypeScript errors upon compilation? I basically have the same …

this typescript tsc
Why can I not use "super" variable from a static context, even though "super" refers to the parent class and NOT a class instance, unlike "this"?

I'm talking java language. Variable "this", when used inside a class, refers to the current instance of that class, which …

java static this super
"expression must be an l-value or function designator" error when taking the address of this

I'm trying to do this in C++: class Abc { int callFunction1() }; void function1(Abc** c1) {//do something} int Abc::callFunction1() { …

c++ this lvalue prvalue
Lua self references

How exacyly do you get variables within a program with self? Like in Java you have: private int a public …

lua this self
Nodejs, express routes as es6 classes

I want to clean up my project a bit and now i try to use es6 classes for my routes. …

javascript node.js express this nodes
Java leaking this in constructor

Why do IDE's complain about "leaking this in constructor"? I've always assumed that it's just bad practice. But I actually …

java this
Compilation error : 'this' cannot be implicitly captured in this context

I am trying to add a condition_variable to handle threads, but get a compilation error at this line: this-&…

c++ scope this condition-variable