Re: subclassof

2010-01-18 Thread P T Withington
y this doesn't work in AS3!] > In some later proposals, no, because the > concept of subclassing is being replaced by the concept of trait > combination. Since this gives non-tree-like subtype relationships, it can't > accommodate instanceof. > >> Should there be a `s

Re: subclassof

2010-01-18 Thread Mark S. Miller
Since this gives non-tree-like subtype relationships, it can't accommodate instanceof. > Should there be a `subclassof` operator? > > > ___ > es-discuss mailing list > es-discuss@mozilla.org > https://mail.mozill

subclassof

2010-01-18 Thread P T Withington
In the various classes-as-sugar proposals, is there a way to test if one class is a subclass of another? Is it as simple as: classa.prototype instanceof classb ? Should there be a `subclassof` operator? ___ es-discuss mailing list es-discuss