Re: (How) does proto operator distiguish between function and non-function in LHS?

2012-01-29 Thread Allen Wirfs-Brock
On Jan 28, 2012, at 12:28 AM, Herby Vojčík wrote: The proposal for | cites these usage examples: - Setting the prototype of a function to something other than Function.prototype let f = EnhancedFunctionPrototype | function () {} - Parrallel constructor/instance prototype chains

(How) does proto operator distiguish between function and non-function in LHS?

2012-01-28 Thread Herby Vojčík
The proposal for | cites these usage examples: - Setting the prototype of a function to something other than Function.prototype let f = EnhancedFunctionPrototype | function () {} - Parrallel constructor/instance prototype chains let superclass = function () {}; //define a

Re: (How) does proto operator distiguish between function and non-function in LHS?

2012-01-28 Thread David Bruant
Le 28/01/2012 09:28, Herby Vojčík a écrit : The proposal for | cites these usage examples: - Setting the prototype of a function to something other than Function.prototype let f = EnhancedFunctionPrototype | function () {} - Parrallel constructor/instance prototype chains let

Re: (How) does proto operator distiguish between function and non-function in LHS?

2012-01-28 Thread Herby Vojčík
David Bruant wrote: Le 28/01/2012 09:28, Herby Vojčík a écrit : The proposal for| cites these usage examples: - Setting the prototype of a function to something other than Function.prototype let f = EnhancedFunctionPrototype| function () {} - Parrallel constructor/instance prototype