Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24407 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81294 invoked by uid 1010); 16 Jul 2006 02:35:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 81279 invoked from network); 16 Jul 2006 02:35:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2006 02:35:51 -0000 X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from ([67.139.134.202:1676] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 71/65-11992-506A9B44 for ; Sat, 15 Jul 2006 22:35:50 -0400 Received: (qmail 55083 invoked by uid 98); 16 Jul 2006 02:35:52 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-1.25 ( Clear:RC:1(127.0.0.1):. Processed in 0.07231 secs); 16 Jul 2006 02:35:52 -0000 X-Qmail-Scanner-Mail-From: ceo@l-i-e.com via o2.hostbaby.com X-Qmail-Scanner: 1.25 (Clear:RC:1(127.0.0.1):. Processed in 0.07231 secs) Received: from unknown (HELO www.l-i-e.com) (127.0.0.1) by localhost with SMTP; 16 Jul 2006 02:35:51 -0000 Received: from 64.4.222.245 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Sat, 15 Jul 2006 21:35:51 -0500 (CDT) Message-ID: <56975.64.4.222.245.1153017351.squirrel@www.l-i-e.com> In-Reply-To: <20060715204801.4e02c985@pierre-u64> References: <347185750.20060715202622@marcus-boerger.de> <20060715204801.4e02c985@pierre-u64> Date: Sat, 15 Jul 2006 21:35:51 -0500 (CDT) To: pierre.php@gmail.com Cc: internals@lists.php.net, "Marcus Boerger" Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Re: Long awaited line directive From: ceo@l-i-e.com ("Richard Lynch") On Sat, July 15, 2006 1:48 pm, Pierre wrote: > On Sat, 15 Jul 2006 20:26:22 +0200 > mail@marcus-boerger.de (Marcus Boerger) wrote: > >> Hello internals, >> >> attached is a patch that brings the '#line' directive to php. >> This is especially usefull for parser generators or any other >> code shuffling/generator tools. Any opinions? If nothing speaks >> against i'd like to commit this before heading towards OSCON >> be end of next week. (oatch is against head of course). >> > > To complete the request, one example (if you are not familiar with > other generators or languages): > > 1. include 'somfile.php' > 2. > #line 1 "linedirective.php" > 4. class Foo // treated as line 1 Please don't do this. It's hard enough to get the masses of PHP users to provide decent source and line number matchups to help them debug their messes as it is. They're just going to use this to make life much much worse... I can understand why there are SOME uber-geek desires for this, but, honestly, I just don't see the benefits outweighing the nightmare it creates... Sorry. -- Like Music? http://l-i-e.com/artists.htm