|Subject:||D::D and source filters|
|Date:||Fri, 3 Jul 2009 16:56:54 +0100|
|To:||bug-Devel-Declare [...] rt.cpan.org|
|From:||Zefram <zefram [...] fysh.org>|
The attached test script demonstrates a bad interaction of Devel::Declare with source filters. The code sets up a no-op Devel::Declare arrangement, which is never used. It also uses a very simple source filter, to inject a small piece of test code by a roundabout route; the filter deletes itself as soon as it is invoked. When parsing reaches the end of the file, the compilation dies with the error message "filter_del can only delete in reverse order (currently)". If the filter is applied *before* the Devel::Declare setup, everything works as expected. It only fails when the filter is applied afterwards. Don't know whether this is a bug in Devel::Declare, Filter::Util::Call, or the perl core. -zefram
Message body is not shown because sender requested not to inline it.