> > the only possible hazard that is left is function exemplar code trying to 
> > access ObjectExamplar.prototype
> 
> Could you illustrate where a function exemplar may try to access an 
> ObjectExemplar.prototype property? 
> 
> Would this be old code that accepts an exemplar as input but expects it to be 
> a function exemplar?

Yes, this is very unlikely to happen. I was merely thinking along these lines:

- The following features work for both function exemplars and object exemplars: 
new, instanceof, <|, super

- Given this high degree of compatibility, could function exemplar code have 
expectations for an exemplar that would not be fulfilled by an object exemplar? 
Accessing exemplar methods was the only thing I could come up with. Thanks to 
|super|, there is no need to call a super-exemplar like a function, any more 
(which would be an expectation that object exemplars could not meet).

Axel

-- 
Dr. Axel Rauschmayer
[email protected]

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com



_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to