develooper Front page | perl.perl6.internals | Postings from January 2008

[svn:parrot-pdd] r25111 - trunk/docs/pdds/draft

From:
allison
Date:
January 21, 2008 14:06
Subject:
[svn:parrot-pdd] r25111 - trunk/docs/pdds/draft
Author: allison
Date: Mon Jan 21 14:06:19 2008
New Revision: 25111

Modified:
   trunk/docs/pdds/draft/pdd19_pir.pod

Log:
[pdd] Applying pdd patch adding #line annotation, resolving RT#47141.


Modified: trunk/docs/pdds/draft/pdd19_pir.pod
==============================================================================
--- trunk/docs/pdds/draft/pdd19_pir.pod	(original)
+++ trunk/docs/pdds/draft/pdd19_pir.pod	Mon Jan 21 14:06:19 2008
@@ -359,6 +359,20 @@
 which is more consistent, and not as confusing as #line, which looks as a comment.
 Also, the #line directive must be at the beginning of the line. See [RT#45857]. }}
 
+=item #line <integer> <string>
+
+Set the line number and filename to the value specified. This is useful in
+case the PIR code is generated from some source file, and any error messages
+should print the source file, not the line number and filename of the generated
+file.
+
+{{ PROPOSAL: Change this to:
+
+ .line <integer> ',' <string>
+
+which is more consistent, and not as confusing as #line, which looks as a comment.
+Also, the #line directive must be at the beginning of the line. See [RT#45857]. }}
+
 =back
 
 =head3 Subroutine flags



Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About