Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18410 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85421 invoked by uid 1010); 25 Aug 2005 10:53:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85406 invoked from network); 25 Aug 2005 10:53:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2005 10:53:53 -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:46779] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 3A/A6-28235-043AD034 for ; Thu, 25 Aug 2005 06:53:52 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j7PArXdc030414; Thu, 25 Aug 2005 12:53:33 +0200 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.12.11/8.12.11) with ESMTP id j7PArVF2030402; Thu, 25 Aug 2005 12:53:31 +0200 Date: Thu, 25 Aug 2005 12:53:31 +0200 (CEST) X-X-Sender: derick@localhost To: Christian Schneider cc: Marian Kostadinov , internals@lists.php.net In-Reply-To: <430D9F7C.3020501@cschneid.com> Message-ID: References: <430D9F7C.3020501@cschneid.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] Re: Real properties in PHP From: derick@php.net (Derick Rethans) On Thu, 25 Aug 2005, Christian Schneider wrote: > This can be easily done with > > function __get($name) > { > $get = "get_$name"; > > return $this->$get(); > } > > function __set($name, $value) > { > $set = "set_$name"; > > $this->$set($value); > } > > in your base class (the function names are then get_fullName/set_fullName. But that has plenty of problems, like I described here: http://news.php.net/php.internals/17491 Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org