Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15516 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16375 invoked by uid 1010); 20 Mar 2005 22:47:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16348 invoked from network); 20 Mar 2005 22:47:56 -0000 Received: from unknown (HELO a.a) (127.0.0.1) by localhost with SMTP; 20 Mar 2005 22:47:56 -0000 X-Host-Fingerprint: 212.104.129.139 mra04.ex.eclipse.net.uk Linux 2.4/2.6 Received: from ([212.104.129.139:43771] helo=mra04.ex.eclipse.net.uk) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 8B/CA-17247-C9DFD324 for ; Sun, 20 Mar 2005 17:47:56 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mra04.ex.eclipse.net.uk (Postfix) with ESMTP id D0C451349DB for ; Sun, 20 Mar 2005 22:47:52 +0000 (GMT) Received: from mra04.ex.eclipse.net.uk ([127.0.0.1]) by localhost (mra04.ex.eclipse.net.uk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22577-01-67 for ; Sun, 20 Mar 2005 22:47:52 +0000 (GMT) Received: from karsites.net (unknown [81.168.74.150]) by mra04.ex.eclipse.net.uk (Postfix) with ESMTP id 342B513385D for ; Sun, 20 Mar 2005 22:47:52 +0000 (GMT) Date: Sun, 20 Mar 2005 22:45:24 +0000 (GMT) X-X-Sender: keith@karsites.net To: internals@lists.php.net In-Reply-To: <5c287472050320142657a706ad@mail.gmail.com> Message-ID: References: <5c287472050320142657a706ad@mail.gmail.com> 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] . period for Class Syntax references From: php@karsites.net Thankyou for your quick replies Derick and Jason. I've taken a look at the link below - but I don't want to make any non-standard changes to the php engine - If it's working, don't 'fix' it! I want my code to be portable as well! I agree with Andrei Zmievski's point of view though. It's a shame it could not be implemented as a standard feature of php zend engine. Regards - Keith Roberts On Sun, 20 Mar 2005, Jason Sweat wrote: > To: "php@karsites.net" > From: Jason Sweat > Subject: Re: [PHP-DEV] . period for Class Syntax references > > On Sun, 20 Mar 2005 22:09:54 +0000 (GMT), php@karsites.net > wrote: > > > > Hi all. > > > > I don't know if this has been implemented yet. > > > > Is it possible to make the '.' period character act > > place of the '->' character pair in class references, > > without conflicting with the '.' concatenation character? > > > > Possibly would have to implement the two styles of > > referencing to allow for backward compatibility? > > > > So, instead of writing: $this->my_var, one could then write > > $this.my_var, which would be alot more in common with other > > OOP languages. > > > > Maybe it's me, but I find it alot easier to read and > > pronounce '$this.my_var' == $this dot my_var, > > > > than something like > > > > '$this->my_var' == $this right-arrow my_var > > > > Or, even some other single character that may be used > > instead of the '->' pair. Any suggestions please? > > > > Regards - Keith Roberts > > Very dangerous to the long term maintainability of your code, but you > could look at: > http://www.gravitonic.com/software/php/ (near the bottom of the page) > which links to http://www.gravitonic.com/software/php/patches/ze2_concat_obj_op.diff.gz > > Regards, > Jason > http://blog.casey-sweat.us/ >