incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Heidegger ...@leichtgewicht.at>
Subject Re: AS3 Enhancements: method overloading. Why do people want this?
Date Mon, 16 Jan 2012 14:53:49 GMT
Overloading is the a way to implement two interface with conflicting 
arguments for the same method:

interface A {
    function test(a: String): void;
}

interface B {
   function test(b:int):void;
}

class C implements A,B {
   function test(a:String):void {};
   function test(b:int):void {};
}

Without it relying on interfaces might be a stressful thing.

yours
Martin.


Mime
View raw message