Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21998 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71929 invoked by uid 1010); 24 Feb 2006 14:23:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71914 invoked from network); 24 Feb 2006 14:23:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2006 14:23:09 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:57600] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id E5/FF-30574-CC61FF34 for ; Fri, 24 Feb 2006 09:23:09 -0500 Received: from [192.168.1.3] (dslb-084-063-048-025.pools.arcor-ip.net [84.63.48.25]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 8B16A35C1BF; Fri, 24 Feb 2006 15:23:05 +0100 (CET) Date: Fri, 24 Feb 2006 15:23:07 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1843338794.20060224152307@marcus-boerger.de> To: php@karsites.net Cc: internals@lists.php.net In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] using $this-> implicitly inside same class From: helly@php.net (Marcus Boerger) 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