Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17663 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89139 invoked by uid 1010); 9 Aug 2005 07:18:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89123 invoked from network); 9 Aug 2005 07:18:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Aug 2005 07:18:49 -0000 X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([82.94.239.5:55659] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id DC/E2-04646-8D858F24 for ; Tue, 09 Aug 2005 03:18:49 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j797IkqI025167 for ; Tue, 9 Aug 2005 09:18:46 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j797Ig9A025152; Tue, 9 Aug 2005 09:18:43 +0200 Date: Tue, 9 Aug 2005 09:18:42 +0200 (CEST) X-X-Sender: derick@localhost To: Andrei Zmievski cc: Raymond Bosman , PHP Developers Mailing List , Jan Borsodi , Frederik Holljen , Tobias Schlitt In-Reply-To: <7024df2a703d613774741267491e6a09@gravitonic.com> Message-ID: References: <39FD64FE-3B15-4E66-A4CD-C392B666BD32@gravitonic.com> <7024df2a703d613774741267491e6a09@gravitonic.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdi-ict.nl Subject: Re: [PHP-DEV] Property Overloading RFC From: dr@ez.no (Derick Rethans) On Mon, 8 Aug 2005, Andrei Zmievski wrote: > On Aug 4, 2005, at 12:09 AM, Derick Rethans wrote: > > > Then you don't do it - it's not a requirement... just an optional thing > > (and ofcourse you can't do the __have_prop() thing then that you > > suggested below. > > Why not? _have_prop() should be able to return true if the class does handle > one of those 1000 properties. They don't need to be declared. Ah,you meant that __have_prop() should always return the full array of things that are supported. That is fine, as long as we can have this generated from the "abstract" properties that people declared (so that they can be documented properly too). > > Works for me, but it needs to be able to called statically (::) and > > dynamically (->). > > Shouldn't be a problem, should it? Nope. Derick