Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9091FB94B for ; Mon, 16 Jan 2012 23:51:16 +0000 (UTC) Received: (qmail 84593 invoked by uid 500); 16 Jan 2012 23:51:16 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 84537 invoked by uid 500); 16 Jan 2012 23:51:15 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 84527 invoked by uid 99); 16 Jan 2012 23:51:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 23:51:15 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rick.winscot@gmail.com designates 209.85.210.47 as permitted sender) Received: from [209.85.210.47] (HELO mail-pz0-f47.google.com) (209.85.210.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 23:51:10 +0000 Received: by dadw11 with SMTP id w11so774734dad.6 for ; Mon, 16 Jan 2012 15:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=DLFpUsxDah3FoQQvQdCHbEZaeV+5Kd7tAoWwQ4I6JN8=; b=HyOc8jqM0Kpy3pHT5zAEoDO+UIxICKlRPldM8eqHy6iwqxBjFa42jhT0fpDRcmC7iK zF5jsdOHxW9kVLUOZt2jaYpSFKuh4O7rNIARDvQJgIPSqOua7k8lKAfT9dxYVFC4kMM2 VcS9tzc3Tql+cdypmAzPGEXthO4GInD/jlZds= MIME-Version: 1.0 Received: by 10.68.116.144 with SMTP id jw16mr30278823pbb.28.1326757850305; Mon, 16 Jan 2012 15:50:50 -0800 (PST) Received: by 10.142.234.6 with HTTP; Mon, 16 Jan 2012 15:50:50 -0800 (PST) Received: by 10.142.234.6 with HTTP; Mon, 16 Jan 2012 15:50:50 -0800 (PST) In-Reply-To: References: <034401ccd45e$621242c0$2636c840$@davidarno.org> <4F1439FD.4020800@leichtgewicht.at> <034f01ccd460$e2d599a0$a880cce0$@davidarno.org> Date: Mon, 16 Jan 2012 18:50:50 -0500 Message-ID: Subject: Re: AS3 Enhancements: method overloading. Why do people want this? From: Rick Winscot To: flex-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=e89a8ff255c65ed40004b6ade274 --e89a8ff255c65ed40004b6ade274 Content-Type: text/plain; charset=ISO-8859-1 Static instances will always be less expensive at runtime over stack allocations. On Jan 16, 2012 10:28 AM, "Nicholas Kwiatkowski" wrote: > Sure -- but you would remove compile-time checking and optimization, which > has some performance impacts (this moves the object type checks to runtime, > vs. compile time, at a performance determent). That would > move convenience over performance, where if you allow overloading, the two > would be equal. > > I'm not saying we would be able to accomplish anything we can't today -- > but it would be much more convenient for some to have it available as a > resource. > > -Nick > > On Mon, Jan 16, 2012 at 10:09 AM, David Arno wrote: > > > > 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. > > > > > --e89a8ff255c65ed40004b6ade274--