class sugar: static inheritance

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

On Sun, Jun 5, 2011 at 9:35 PM, Peter Michaux <petermichaux at>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: <>

More information about the es-discuss mailing list