develooper Front page | perl.perl5.porters | Postings from June 2015

Re: For 5.24: suggested incompatible changes

Thread Previous | Thread Next
From:
Zefram
Date:
June 29, 2015 17:51
Subject:
Re: For 5.24: suggested incompatible changes
Message ID:
20150629175140.GE23010@fysh.org
Reini Urban wrote:
>Agreed, converting to this particular prototype which disables list flattening
>should of course not be done.

Any use of $ in a prototype disables list flattening.  If you're not
going to generate such prototypes, that almost totally eviscerates the
concept of automatic prototype generation.

>there's no semantic distinction of constant folded to CONSTSUB, dummy_xs or not constant folded subs,

CONSTSUB versus something that doesn't inline is semantically visible
thus:

$ perl -lXe 'sub foo () { 3 } *foo = sub { 6 }; print foo()'
3
$ perl -lXe 'sub foo { 3 } *foo = sub { 6 }; print foo()'   
6

-zefram

Thread Previous | 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