do we have a thisclass? (for abstract static methods)

2013-06-07 Thread Claus Reinke
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) {

Re: do we have a thisclass? (for abstract static methods)

2013-06-07 Thread Kevin Smith
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

Re: do we have a thisclass? (for abstract static methods)

2013-06-07 Thread Axel Rauschmayer
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

Re: do we have a thisclass? (for abstract static methods)

2013-06-07 Thread Claus Reinke
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.

Re: do we have a thisclass? (for abstract static methods)

2013-06-07 Thread Allen Wirfs-Brock
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

Re: do we have a thisclass? (for abstract static methods)

2013-06-07 Thread Allen Wirfs-Brock
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?