incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Wienberg <fr...@jangaroo.net>
Subject Re: [FalconJS] concepts
Date Thu, 29 Nov 2012 08:26:02 GMT
On Thu, Nov 29, 2012 at 8:45 AM, Erik de Bruin <erik@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-

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message