petdance/scratch — Issue #438: Deprecate .file, .line, setline, and setfile
Author: petdance
Created: 2011-11-01 05:42:21+00:00
State: open
Labels: deprecation, imcc, Pri-normal, Sev-medium

IMCC supports several syntaxes for setting line number and file name information. Among these are:
{{{
.file "foo.pir"
.line 123
}}}

And another set:

{{{
setfile "foo.pir"
setline 123
}}}

The first set are directives using normal directive syntax, but are not used anywhere that I can find in the docs or the test suite. The second set are also directives, even though they are made to look like opcodes. This is confusing. This second set is lightly tested.

I suggest we remove both. .annotate is the method we are using for identifying things like file number and line number information. These other things are mostly-forgotten relics.

Originally http://trac.parrot.org/parrot/ticket/2168