Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25116 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11632 invoked by uid 1010); 2 Aug 2006 11:44:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 11617 invoked from network); 2 Aug 2006 11:44:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2006 11:44:13 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 64.233.166.178 py-out-1112.google.com Linux 2.4/2.6 Received: from ([64.233.166.178:36608] helo=py-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 08/4B-45114-B0090D44 for ; Wed, 02 Aug 2006 07:44:12 -0400 Received: by py-out-1112.google.com with SMTP id n25so1521886pyg for ; Wed, 02 Aug 2006 04:44:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=p/TxKNhyo9vnsLxZb7mwmjgQPmv3TY3pxvK63A5O4mFG5+CZqEYemuw8fKaE/GRokFIe8cNG+Y0JycOcM3uZ7+Fw0RWJ0Xk8vPCUn8yZvLJLmNblazS01hyAOYggLgkUJ5XGCHVxsDu5JA81O7j1pis691KGA2Yf0EAEeAsfIpo= Received: by 10.35.94.2 with SMTP id w2mr1301382pyl; Wed, 02 Aug 2006 04:44:05 -0700 (PDT) Received: by 10.35.93.18 with HTTP; Wed, 2 Aug 2006 04:44:04 -0700 (PDT) Message-ID: <10845a340608020444g79e1da83vdf1cc27ae9ae183d@mail.gmail.com> Date: Wed, 2 Aug 2006 12:44:04 +0100 Reply-To: RQuadling@GoogleMail.com To: "Hartmut Holzgraefe" Cc: "Ron Korving" , internals@lists.php.net In-Reply-To: <44D07EDE.4030001@mysql.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <18810497049.20060801234124@marcus-boerger.de> <1154478748.6599.16.camel@blobule> <5D.33.45114.9A960D44@pb1.pair.com> <44D07EDE.4030001@mysql.com> Subject: Re: [PHP-DEV] RfC: rethink OO inheritance strictness From: rquadling@googlemail.com ("Richard Quadling") This is where PHP's strengths can be seen as a weakness. If parameter overloading is wanted then it would be easier if PHP was not a loosely typed language. But, just for arguments sake, if E_STRICT was active _and_ type hinting was available for ALL types, then at compile time, you COULD build the appropriate parameter signature. And parameter overloading could work. No E_STRICT and you don't have it. E_STRICT may be the name to use as this would be breaking the "contract" between parent and child and the issue of "instance of" does appear again. I would LOVE type hinting, just so that auto documentors can say that this function requires a datetime as an integer and not a datetime as a string (sort of thing). On 02/08/06, Hartmut Holzgraefe wrote: > Ron Korving wrote: > > > So, my suggestion is this: why not support function overloading in PHP6, > > because in PHPs dynamicly typed world this would require runtime > checks *on every single function call* as things can't be resolved > at compile time? > > -- > Hartmut Holzgraefe, Senior Support Engineer . > MySQL AB, www.mysql.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"