Hacking on Perl feature.h help

--0000000000007f46280570564a2a
Content-Type: text/plain; charset="UTF-8"

Hey P5P folks,

I'm hacking on the Perl source to get to know it a little better, and I'm
trying to implement a feature that allows require to return false and not
die with "did not return a true value".

I added the feature flag, added a private op to leaveeval. In this commit:

https://github.com/dnmfarrell/perl5/commit/9e47a7970d408bd5ba83627657a6debf2f280257

I updated op.c to set the private flag if the feature was enabled.

My problem is, after compiling perl the feature flag is always false, even
though I do "use feature 'require_false';". I added the feature in this
commit:

https://github.com/dnmfarrell/perl5/commit/66f43943f438f5bc7970dab0b7940e46c84909f5

I've compared my code to the signatures feature, and I can't see what I'm
missing. Could anybody help me please?

Thanks in advance

David

--0000000000007f46280570564a2a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hey P5P folks,<div><br></div><div>I&#39;m hacking on the P=
erl source to get to know it a little better, and I&#39;m trying to impleme=
nt a feature that allows require to return false and not die with &quot;did=
 not return a true value&quot;.</div><div><br></div><div>I added the featur=
e flag, added a private op to leaveeval. In this commit:</div><div><br></di=
v><div><a href=3D"https://github.com/dnmfarrell/perl5/commit/9e47a7970d408b=
d5ba83627657a6debf2f280257">https://github.com/dnmfarrell/perl5/commit/9e47=
a7970d408bd5ba83627657a6debf2f280257</a></div><div><br></div><div>I updated=
 op.c to set the private flag if the feature was enabled.</div><div><br></d=
iv><div>My problem is, after compiling perl the feature flag is always fals=
e, even though I do &quot;use feature &#39;require_false&#39;;&quot;. I add=
ed the feature in this commit:</div><div><br></div><div><a href=3D"https://=
github.com/dnmfarrell/perl5/commit/66f43943f438f5bc7970dab0b7940e46c84909f5=
">https://github.com/dnmfarrell/perl5/commit/66f43943f438f5bc7970dab0b7940e=
46c84909f5</a><br></div><div><br></div><div>I&#39;ve compared my code to th=
e signatures feature, and I can&#39;t see what I&#39;m missing. Could anybo=
dy help me please?</div><div><br></div><div>Thanks in advance</div><div><br=
></div><div>David</div></div>

--0000000000007f46280570564a2a--
0
davidnmfarrell
7/6/2018 3:26:42 PM
perl.perl5.porters 47265 articles. 0 followers. Follow

0 Replies
11 Views

Similar Articles

[PageSpeed] 42

Reply: