Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32748 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93228 invoked by uid 1010); 13 Oct 2007 20:22:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93213 invoked from network); 13 Oct 2007 20:22:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Oct 2007 20:22:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.184.224 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 64.233.184.224 wr-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.184.224] ([64.233.184.224:4502] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/93-64256-40921174 for ; Sat, 13 Oct 2007 16:22:28 -0400 Received: by wr-out-0506.google.com with SMTP id 58so745955wri for ; Sat, 13 Oct 2007 13:22:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=M2DkcH5f6BqNKwaySegvLw9UZg5r+nqoJxQ+qdgXmd0=; b=svrtY9eNpc3SSMfU14Sd0AAu33SkI/38YziDsldvez4wqaCYGctAomBIzVtDeyJsELjdhNhZlIjZBeD62fLQDRJ7A1ov4KQeL74JjAsYmV57AGqfdbJ/+TL13YZj9LqPGqaXZYkTwXwwzsN4415UbGWPi4dbBG25I6/Ie9lIAyY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fro2wUWrsejsjw2EQ4R7eRzW3eSCQDBJNcFoV9+9fuONLMR1ixdX334I5JmzsU4k3vXAJNll0GzU+EMP193cTOJ+dk6An/3unU1NocpdrIXySqsO0+6zL7YY6V20xP96FHh9ij5N28KojOHYxiHXsMmakuWw4IfLc8gDHYQ/jBA= Received: by 10.90.52.18 with SMTP id z18mr6769186agz.1192306945927; Sat, 13 Oct 2007 13:22:25 -0700 (PDT) Received: by 10.90.91.16 with HTTP; Sat, 13 Oct 2007 13:22:25 -0700 (PDT) Message-ID: Date: Sun, 14 Oct 2007 00:22:25 +0400 To: "Hans Moog" Cc: internals@lists.php.net In-Reply-To: <7C37FF3A0196094F95430BA95952032211B7C5@s1.mkj.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7C37FF3A0196094F95430BA95952032211B7C5@s1.mkj.lan> Subject: Re: [PHP-DEV] Method overloading by method signature From: indeyets@gmail.com ("Alexey Zakhlestin") Hans, such overloading would be incompatible with php's dynamic nature As far as I remember, even type-hinting for basic-types (strings, integers) was rejected On 10/13/07, Hans Moog wrote: > Will method overloading by method signature be implemented in php6 or > even php 5.3? > > > > Example: > > > namespace xyz; > > > > import core::TestClass; > > > > class Test extends TestClass { > > public string function test(integer $int) { > > return "Hi"; > } > > > > public integer function test(string $string, integer $int) { > > return $int; > } > } > > ?> > > > > I think this would be a very big advantage and would help developers to > write better code. > > -- Alexey Zakhlestin http://blog.milkfarmsoft.com/