Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24413 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69774 invoked by uid 1010); 16 Jul 2006 09:25:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 69759 invoked from network); 16 Jul 2006 09:25:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2006 09:25:14 -0000 X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:39219] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 53/FD-11992-8410AB44 for ; Sun, 16 Jul 2006 05:05:13 -0400 Received: from baumbart.mbo (dslb-084-063-024-149.pools.arcor-ip.net [84.63.24.149]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id AC0D735C204; Sun, 16 Jul 2006 11:05:09 +0200 (CEST) Date: Sun, 16 Jul 2006 11:05:14 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <783701182.20060716110514@marcus-boerger.de> To: Stanislav Malyshev Cc: Robert Cummings , internals@lists.php.net In-Reply-To: References: <347185750.20060715202622@marcus-boerger.de> <20060715204801.4e02c985@pierre-u64> <56975.64.4.222.245.1153017351.squirrel@www.l-i-e.com> <1153018028.3177.4.camel@blobule> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Long awaited line directive From: helly@php.net (Marcus Boerger) Hello Stanislav, Sunday, July 16, 2006, 9:52:59 AM, you wrote: RC>>>will tell them in what included template source file and on what line RC>>>they screwed up rather than them seeing an error that has no obvious RC>>>relationship whatsoever to what they did (did I get that right RC>>>Marcus?). > Why can't you make your engine put comments in the code? He most likely can. But then he still has to do some arithmetic in the error messages after having looked up the code. Ok let's get this in a more detailed exxample. Lets look at what a potential xml-template based code generator might do. Not that the example makes much sense - sorry for that - but i had to find an easy warning. and I also had to come up with a very easy generator, for that i hope my mini template stuff is self explanatory.... file-a.pxp: The template 1. file-b.php: Some valid php file 1. file-c.inc: Some code note that we do not have '