incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Arno" <da...@davidarno.org>
Subject RE: AS3 Enhancements: method overloading. Why do people want this?
Date Mon, 16 Jan 2012 15:09:46 GMT
> 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.


Mime
View raw message