develooper Front page | perl.perl5.porters | Postings from January 2020

Re: no feature 'indirect';

Thread Previous | Thread Next
January 26, 2020 16:56
Re: no feature 'indirect';
Message ID:
demerphq <> writes:

> So this enables indirect everywhere? That doesnt sound at all reasonable to
> me...

Enabled (as in indirect object syntax is permitted) is the current
state.  Quoting the documentation for the feature:

    This feature allows the use of indirect object syntax for method
    calls[.] It is enabled by default, but can be turned off to
    disallow indirect object syntax.
    This feature is available under this name from Perl 5.32 onwards.
    In previous versions, it was simply on all the time.

This lets you turn it off in a lexical scope, by saying "no
feature 'indirect';".

> I expect such a construct to be lexically scoped in which case why would it
> break CPAN?

> Yves
> On Sun, 26 Jan 2020, 12:11 Karen Etheridge, <> wrote:
>> I would love to see this in 5.32 if possible, but can we get an idea
>> of its impact first?  Is it possible to smoke this against cpan (or
>> the cpan-3000)?

The ability to turn it of will definitely be 5.32.  The open question is
whether to remove it from the :5.32 feature bundle, so that "use v5.32;"
or "use feature ':5.32';" or "perl -E" will disable it by default.  I'm
leaning towards "no", since we're now in the contentious change freeze

- ilmari

>> On Tue, Jan 21, 2020 at 6:53 AM Dagfinn Ilmari Mannsåker
>> <> wrote:
>> >
>> > Hi Porters,
>> >
>> > Based on TonyC's initial "use feature 'noindirect';"¹ PR, I've created
>> > another one for "no feature 'indirect';"², which inverts the feature and
>> > makes it enabled by default, and included in all the feature bundles.
>> >
>> > Do we want to remove it from the 5.32 feature bundle, or is that too
>> > late in the development cycle?
>> >
>> > - ilmari
>> >
>> > [1]:
>> > [2]:
>> > --
>> > - Twitter seems more influential [than blogs] in the 'gets reported in
>> >   the mainstream press' sense at least.               - Matt McLeod
>> > - That'd be because the content of a tweet is easier to condense down
>> >   to a mainstream media article.                      - Calle Dybedahl

"A disappointingly low fraction of the human race is,
 at any given time, on fire." - Stig Sandbeck Mathisen

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About