On Thu, Nov 29, 2012 at 8:45 AM, Erik de Bruin <e...@ixsoftware.nl> wrote:
> Well, there is the JavaScript operator "instanceof", what's wrong with > that? > Nothing, but it only works when you actually use the prototype chain, not when you copy all members from the superclass to the subclass. Also, when using ActionScript, you will want to use "is" for interfaces, where "instanceof" does not work. Bernd Paradies points out in his blog<http://blogs.adobe.com/bparadie/2012/10/21/kicking-typescipts-tires/>that a real drawback of TypeScript is that there is no runtime type information about interfaces. The Jangaroo Compiler + Runtime implement the "is" and "as" operators to work with interfaces seamlessly and efficiently! Greetings, -Frank-