Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9456 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13572 invoked by uid 1010); 21 Apr 2004 10:53:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13500 invoked from network); 21 Apr 2004 10:53:43 -0000 Received: from unknown (HELO is.magroup.ru) (213.33.179.242) by pb1.pair.com with SMTP; 21 Apr 2004 10:53:43 -0000 Received: from localhost.localdomain ([192.168.3.226]) by is.magroup.ru with Microsoft SMTPSVC(5.0.2195.6713); Wed, 21 Apr 2004 14:53:58 +0400 Date: Wed, 21 Apr 2004 14:53:58 +0400 To: internals@lists.php.net Message-ID: <20040421145358.09c9cd1d.tony2001@phpclub.net> X-Mailer: Sylpheed version 0.9.10cvs7 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Apr 2004 10:53:58.0897 (UTC) FILETIME=[F300C610:01C4278E] Subject: $class_name::$const_name syntax From: tony2001@phpclub.net (Antony Dovgal) Hi all! I know, it's too late to propose such things before PHP5.0.0, but maybe there is a chance to include it to 5.1... Short example: I found similar ideas here: http://lists.php.net/article.php?group=php.internals&article=7980, but this patch doesn't allow to fetch constants from the class. I've tried to write a patch for language parser, but I found this bison/yacc stuff too tricky for me =( IMHO this addon will not affect other stuff (at least I can't see any possible problems it could cause), but could be very useful. Is it possible to implement such syntax in 5.x ? --- WBR, Antony Dovgal aka tony2001 tony2001@phpclub.net || antony@dovgal.com