Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17523 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29325 invoked by uid 1010); 4 Aug 2005 07:09:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29309 invoked from network); 4 Aug 2005 07:09:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2005 07:09:29 -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:55130] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 24/12-04646-82FB1F24 for ; Thu, 04 Aug 2005 03:09:29 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j7479OVi009749 for ; Thu, 4 Aug 2005 09:09:24 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j7479K1m009738; Thu, 4 Aug 2005 09:09:22 +0200 Date: Thu, 4 Aug 2005 09:09:19 +0200 (CEST) X-X-Sender: derick@localhost To: Andrei Zmievski cc: PHP Developers Mailing List , Jan Borsodi , Raymond Bosman , Frederik Holljen , Tobias Schlitt In-Reply-To: <39FD64FE-3B15-4E66-A4CD-C392B666BD32@gravitonic.com> Message-ID: References: <39FD64FE-3B15-4E66-A4CD-C392B666BD32@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 Wed, 3 Aug 2005, Andrei Zmievski wrote: > The whole point of these "virtual" properties is that their names can be > parameterized. If you have 1000 of these variables (in a DB or somewhere), how > would you declare them as "abstract" or "virtual"? 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. > > This is ofcourse overly complicated. A better workable solution would be - > > without breaking BC (suggestions for syntax here are very welcome): [snip] > How about a __have_prop() method that you can call to find out if a certain > virtual property exists? Works for me, but it needs to be able to called statically (::) and dynamically (->). Derick