Top "This" questions

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

std::shared_ptr of this

I am currently trying to learn how to use smart pointers. However while doing some experiments I discovered the following …

c++ this shared-ptr this-pointer
Leaking this in constructor warning

I'd like to avoid (most of the) warnings of Netbeans 6.9.1, and I have a problem with the 'Leaking this in …

java netbeans constructor this netbeans-6.9
*this vs this in C++

I understand what this does, but what is the difference between *this and this? Yes, I have Googled and read …

c++ this
Javascript "this" pointer within nested function

I have a question concerning how the "this" pointer is treated in a nested function scenario. Say I insert this …

javascript function nested this
Call parent function which is being overridden by child during constructor chain in JavaScript(ES6)

I've encounter a problem below with JavaScript(ES6) class A{ constructor(){ this.foo(); } foo(){ console.log("foo in A is …

javascript class constructor this ecmascript-6
"this" is undefined inside map function Reactjs

I'm working with Reactjs, writing a menu component. "use strict"; var React = require("react"); var Menus = React.createClass({ item_url: …

javascript reactjs this map-function
jQuery: this: "$(this).next().next()" works, but "$(this).next('.div')" does Not

Okay, I am trying to get this set of information to hide individually. <img class="arrow" src="images/navigation/…

javascript jquery this next
this inside function

My question is: function Foo() { this.foo = "bar"; // <- What is "this" here? } From what I can tell it …

javascript function this
Difference in context this and getContext()

What is difference between this and getContext(), when I say this I mean this within an Activity.

android this android-context
How does require() in node.js work?

I tried this: // mod.js var a = 1; this.b = 2; exports.c = 3; // test.js var mod = require('./mod.js'); console.…

javascript node.js this require apply