Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22008 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50900 invoked by uid 1010); 24 Feb 2006 22:00:58 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50884 invoked from network); 24 Feb 2006 22:00:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2006 22:00:58 -0000 X-Host-Fingerprint: 82.153.252.25 mra03.ch.as12513.net Linux 2.4/2.6 Received: from ([82.153.252.25:56457] helo=mra03.ch.as12513.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 52/F6-30574-9128FF34 for ; Fri, 24 Feb 2006 17:00:57 -0500 Received: from localhost (localhost [127.0.0.1]) by mra03.ch.as12513.net (Postfix) with ESMTP id E48FCD455C for ; Fri, 24 Feb 2006 22:00:53 +0000 (GMT) Received: from mra03.ch.as12513.net ([127.0.0.1]) by localhost (mra03.ch.as12513.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04733-01-82 for ; Fri, 24 Feb 2006 22:00:53 +0000 (GMT) Received: from karsites.net (unknown [81.168.74.150]) by mra03.ch.as12513.net (Postfix) with ESMTP id DA30BD4498 for ; Fri, 24 Feb 2006 22:00:52 +0000 (GMT) Date: Fri, 24 Feb 2006 21:52:59 +0000 (GMT) X-X-Sender: keith@karsites.net To: internals@lists.php.net In-Reply-To: <1843338794.20060224152307@marcus-boerger.de> Message-ID: References: <1843338794.20060224152307@marcus-boerger.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by Eclipse VIRUSshield at eclipse.net.uk Subject: Re: [PHP-DEV] using $this-> implicitly inside same class From: php@karsites.net Thanks to Marcus and everyone else for their comments. I note the valid points you raised. Keith On Fri, 24 Feb 2006, Marcus Boerger wrote: > To: php@karsites.net > From: Marcus Boerger > Subject: Re: [PHP-DEV] using $this-> implicitly inside same class > > Hello php, > > Friday, February 24, 2006, 3:05:11 PM, you wrote: > > > Hi all. > > > I'm using php 5.1.2 compiled from source, with Apache 2.2.0 > > and MySQL 5.0.18 on SuSE Linux 9.2 pro. > > > I really do not see the need to keep telling php I'm > > refering to the properties and method of the class I'm > > already in, when php 5 should be able to deduce this from > > the context of the class I'm coding in. > > While we could do this we decided against this years ago for a good reason. > It is faster the way we do it and the code is clearer and much easier > toread. Also introducing this now would be a major BC break. > > > This would save ALOT of repetitive typing, and make the code > > alot more concise. > > WOW, do your fingers hurt when typing "$this->" - wow 7 strokes. > > > this.use_implicit could default to FALSE, so it would not > > interfere with current code compatibility. > > No chance for an ini option because that would make writing protable > code impossible. > > [...] > > > Best regards, > Marcus > >