Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15514 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82315 invoked by uid 1010); 20 Mar 2005 22:12:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82300 invoked from network); 20 Mar 2005 22:12:26 -0000 Received: from unknown (HELO karsites.net) (127.0.0.1) by localhost with SMTP; 20 Mar 2005 22:12:26 -0000 X-Host-Fingerprint: 212.104.129.88 mra03.ex.eclipse.net.uk Linux 2.4/2.6 Received: from ([212.104.129.88:42294] helo=mra03.ex.eclipse.net.uk) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 70/B8-17247-945FD324 for ; Sun, 20 Mar 2005 17:12:26 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mra03.ex.eclipse.net.uk (Postfix) with ESMTP id EDDB02E2A5C for ; Sun, 20 Mar 2005 22:12:22 +0000 (GMT) Received: from mra03.ex.eclipse.net.uk ([127.0.0.1]) by localhost (mra03.ex.eclipse.net.uk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10717-04-90 for ; Sun, 20 Mar 2005 22:12:22 +0000 (GMT) Received: from karsites.net (unknown [81.168.74.150]) by mra03.ex.eclipse.net.uk (Postfix) with ESMTP id 0960D2E29A2 for ; Sun, 20 Mar 2005 22:12:22 +0000 (GMT) Date: Sun, 20 Mar 2005 22:09:54 +0000 (GMT) X-X-Sender: keith@karsites.net To: internals@lists.php.net Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by Eclipse VIRUSshield at eclipse.net.uk Subject: . period for Class Syntax references From: php@karsites.net 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 http://www.karsites.net/