[Padre-dev] Next release on Saturday/Sunday
Steffen Mueller
smueller at cpan.org
Fri Jan 2 06:55:24 PST 2009
Hi Petar, hi all,
Petar Shangov wrote:
>> The problem as far as I can understand is that transmo() function
>> is generated in a Task and it is not available when the code is
>> trying to call it.
>
> The transmo() function is generated during
> Padre::Task::ErrorParser->run (in 'Parse::ErrorString::Perl->new'),
> and is called during Padre::Task::ErrorParser->finish (in
> '$parser->parse_string'). Is it possible that 'finish' is called
> before 'run' has completed?
No, that's not the problem. The run() method is called in a thread. Only
what you store in the Padre::Task::ErrorParser object is ever visible to
the main thread (and thus the code in the finish() method). More likely
than not, you cannot transfer code refs reliably using Storable.
Cheers,
Steffen
More information about the Padre-dev
mailing list