On Tue, Aug 17, 2010 at 09:24:10PM -0000, Parrot wrote:
> #1198: interactive mode doesn't save lexicals correctly
> --------------------+-------------------------------------------------------
> Reporter: kjs | Owner: pmichaud
> Type: bug | Status: new
> Priority: normal | Milestone:
> Component: PCT | Version:
> Severity: medium | Keywords:
> Lang: | Patch:
> Platform: |
> --------------------+-------------------------------------------------------
>
> Comment(by coke):
>
> I know this was resolved for Rakudo -- Were the fixes done for Rakudo
> generally applicable to any HLL using the REPL?
They can be -- each HLL has to add some code to its "main subroutine"
where it wants to have lexicals saved. In Rakudo and NQP, this is
done by adding
$unit.push( self.CTXSAVE() );
into whatever action method is responsible for creating the compilation
unit's mainline ($unit in ths case is the PAST::Block representing
the mainline code).
Pm
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets