develooper Front page | perl.perl5.porters | Postings from July 2009

constants folding asserts at runtime, 5.10.1 and 5.11

Thread Next
From:
Ruslan Zakirov
Date:
July 25, 2009 06:36
Subject:
constants folding asserts at runtime, 5.10.1 and 5.11
Message ID:
589c94400907250635o63d26d9ejd3355765f69245c6@mail.gmail.com
Hello,

I'm not big expert in all this, however as far as I can understand the
following assert in fold_constants check if we're compile mode:

assert(PL_curcop == &PL_compiling);

This breaks B::Generate and probably any module that builds an optree
at run-time. Simple test case:

use B::Generate;
B::BINOP->new("add", 0, 0, 0);

Can this assert be changed with "don't fold" version?

-- 
Best regards, Ruslan.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About