Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32811 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14575 invoked by uid 1010); 16 Oct 2007 10:32:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14560 invoked from network); 16 Oct 2007 10:32:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Oct 2007 10:32:29 -0000 Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.141.85.117 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.141.85.117 uf1.search.ch Linux 2.6 Received: from [195.141.85.117] ([195.141.85.117:36379] helo=smtp.rim.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/92-29600-C3394174 for ; Tue, 16 Oct 2007 06:32:29 -0400 Received: from localhost (localhost [127.0.0.1]) by rolig.search.ch (Postfix) with ESMTP id 881B42CA7A0; Tue, 16 Oct 2007 12:32:25 +0200 (CEST) Received: from smtp.rim.ch ([127.0.0.1]) by localhost (search.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16166-06; Tue, 16 Oct 2007 12:32:24 +0200 (CEST) Received: from [192.168.1.72] (ultrafilter-i [192.168.85.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rolig.search.ch (Postfix) with ESMTP id 4D5AA2CA79B; Tue, 16 Oct 2007 12:32:24 +0200 (CEST) Message-ID: <47149337.9000209@cschneid.com> Date: Tue, 16 Oct 2007 12:32:23 +0200 User-Agent: Thunderbird 1.5.0.12 (X11/20060911) MIME-Version: 1.0 To: Hans Moog CC: internals@lists.php.net References: <7C37FF3A0196094F95430BA95952032211B7C5@s1.mkj.lan> <7C37FF3A0196094F95430BA95952032211B7C7@s1.mkj.lan> <72129346.20071014092922@marcus-boerger.de> <7C37FF3A0196094F95430BA95952032211B7CC@s1.mkj.lan> <19939840.20071014231353@marcus-boerger.de> <002f01c80f5b$d645d340$15b2a8c0@unterwegs> <7C37FF3A0196094F95430BA95952032211B7D2@s1.mkj.lan> <4714881F.1030302@cschneid.com> <7C37FF3A0196094F95430BA95952032201611B@s1.mkj.lan> In-Reply-To: <7C37FF3A0196094F95430BA95952032201611B@s1.mkj.lan> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at search.ch Subject: Re: AW: AW: [PHP-DEV] Method overloading by method signature From: cschneid@cschneid.com (Christian Schneider) Hans Moog wrote: > And if you have more than one parameter you will name it > methodFromStringIntegerSampleClassBoolean ?!? No, I would rethink my interface. > And how would you do the same for constructors ?!? Create a > initWithStringIntegerSampleClassBoolean method which has to be called > after object creation ?!? No, I would either use factory methods or the OO approach I outlined in my previous message. But let's agree that we fundamentally disagree on style. I think you're using the wrong language but that's just me.... Over and out, - Chris