#1201: Parrot::Pmc2c::Emitter line # error
--------------------+-------------------------------------------------------
Reporter: coke | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: core | Version:
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
--------------------+-------------------------------------------------------
Comment(by jkeenan):
Replying to [ticket:1201 coke]:
> New ticket opened from comment on list in thread 'Re: Warnings on
> Solaris, Pmc2c usage/design bug', from Andrew Johnson.
>
The first post in that thread can be found [http://www.mail-
archive.com/[email protected]/msg76934.html here].
> ----
>
> BTW, there is a fundamental problem with this very common usage of a
> Parrot::Pmc2c::Emitter:
>
> $e->emit( <<"END", __FILE__, __LINE__ + 1 );
> ... code ...
> END
>
> In the above usage, __LINE__ returns the line number of the line
containing
> the "END" marker, not that of the line containing the "emit" call, so
the
> #line directive it emits points to the wrong place in the source file.
... and this passage occurs in well into the thread [http://www.mail-
archive.com/[email protected]/msg77423.html here].
kid51
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1201#comment:2>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets