class sugar: static inheritance

Bob Nystrom rnystrom at google.com
Mon Jun 6 10:19:38 PDT 2011


On Sun, Jun 5, 2011 at 9:35 PM, Peter Michaux <petermichaux at gmail.com>wrote:

> Based on my understanding of what the desugared code would be, the
> last line above would be an error because Dragon.allMonsters is
> undefined.


That's correct. Do you have any examples of code where inheriting the
constructor objects would be helpful?

- bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110606/9823c0b0/attachment.html>


More information about the es-discuss mailing list