Re: [FLEXJS] inheritance/interfaces

2013-11-15 Thread Erik de Bruin
> As far as I know, "instanceof" checks do *not* work with interfaces. That's > what "is" is for. "is" works for both classes and interfaces. Correct. I've updated the 'org.apache.flex.utils.Language.is()' method to take super class interface implementation into account. I also updated the exampl

Re: [FLEXJS] inheritance/interfaces

2013-11-15 Thread Frank Wienberg
As far as I know, "instanceof" checks do *not* work with interfaces. That's what "is" is for. "is" works for both classes and interfaces. new B() instanceof A => true new B() instanceof IA => false (or even compile error?) new B() is A => true new B() is IA => true On Thu, Nov 14, 2013 at 7:18 P

Re: [FLEXJS] inheritance/interfaces

2013-11-14 Thread OmPrakash Muppirala
This might be related to [1] as well. Thanks, Om [1] https://issues.apache.org/jira/browse/FLEX-33780 On Thu, Nov 14, 2013 at 9:39 AM, Erik de Bruin wrote: > Thanks. On it. > > EdB > > > > On Thu, Nov 14, 2013 at 6:37 PM, Michael A. Labriola > wrote: > >>If class B extends class A and class

Re: [FLEXJS] inheritance/interfaces

2013-11-14 Thread Erik de Bruin
Thanks. On it. EdB On Thu, Nov 14, 2013 at 6:37 PM, Michael A. Labriola wrote: >>If class B extends class A and class A implements interface IA, does class B >>also implement IA? In other words, in this scenario, does (B is IA) return >>true? > > Yep > > -- Ix Multimedia Software Jan Lu

RE: [FLEXJS] inheritance/interfaces

2013-11-14 Thread Michael A. Labriola
>If class B extends class A and class A implements interface IA, does class B >also implement IA? In other words, in this scenario, does (B is IA) return >true? Yep