incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Web DoubleFx <webdoubl...@hotmail.com>
Subject RE: AS3 Enhancements: method overloading. Why do people want this?
Date Mon, 16 Jan 2012 15:13:40 GMT

----------------------------------------
> From: david@davidarno.org
> To: flex-dev@incubator.apache.org
> Subject: RE: AS3 Enhancements: method overloading. Why do people want this?
> Date: Mon, 16 Jan 2012 15:09:46 +0000
>
> > From: Nicholas Kwiatkowski [mailto:nicholas@spoon.as]
> > Sent: 16 January 2012 15:02
>
> > public function sendAsString(stringToSend:String):bool
> > public function sendAsBool(boolToSend:Boolean):bool
> > public function sendAsArray(arrayToSend:Array):bool
> > public function sendAsInt(intToSend:int):bool ...
>
> Could you not just have:
>
> public function send(value:*):Boolean
>
> instead?
>
> David.
>


What if you need to implement 2 interfaces (that you don't own) with methods of the same names
and differents arguments ?

Frédéric Thomas

 		 	   		  
Mime
View raw message