> 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
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
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
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
>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