We do have this/super for references along the instance prototype
chain, and we have this.constructor for getting to the class of an instance
method. But what about getting the current class from a static method,
for class-side inheritance?
// abstract
class Super {
static f(x) {
On Thu, Jun 6, 2013 at 2:12 PM, Claus Reinke claus.rei...@talk21.comwrote:
We do have this/super for references along the instance prototype
chain, and we have this.constructor for getting to the class of an instance
method. But what about getting the current class from a static method,
for
On Thu, Jun 6, 2013 at 2:12 PM, Claus Reinke claus.rei...@talk21.com wrote:
We do have this/super for references along the instance prototype
chain, and we have this.constructor for getting to the class of an instance
method. But what about getting the current class from a static method,
for
We do have this/super for references along the instance prototype
chain, and we have this.constructor for getting to the class of an instance
method. But what about getting the current class from a static method,
for class-side inheritance?
Can't you just use this?
Exactly, that should work.
On Jun 7, 2013, at 8:37 AM, Axel Rauschmayer wrote:
On Thu, Jun 6, 2013 at 2:12 PM, Claus Reinke claus.rei...@talk21.com wrote:
We do have this/super for references along the instance prototype
chain, and we have this.constructor for getting to the class of an instance
method. But what about
On Jun 7, 2013, at 8:50 AM, Claus Reinke wrote:
We do have this/super for references along the instance prototype
chain, and we have this.constructor for getting to the class of an instance
method. But what about getting the current class from a static method,
for class-side inheritance?
6 matches
Mail list logo