develooper Front page | perl.perl5.porters | Postings from August 2018

Re: Hacking on Perl feature.h help

Thread Previous
From:
Sawyer X
Date:
August 25, 2018 09:02
Subject:
Re: Hacking on Perl feature.h help
Message ID:
6c4594a7-ee19-3482-989a-5e8d77cc5203@gmail.com
Bumping David's email here. If any hacker has a bit of spare time to
help an up-and-coming hacker.

On 07/06/2018 06:26 PM, David Farrell wrote:
> 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

Thread Previous


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