New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
all XS functions are implicitly :lvalue #12955
Comments
From @maukeCreated by @maukeThe following problem was found by yko (Yaroslav Korshak): % perl -wle 'use List::Util qw(maxstr); List::Util->maxstr($_ = "hi") = 42; print' % ./perl -v % ./perl -Ilib -wle 'use List::Util qw(maxstr); List::Util->maxstr($_ = "hi") = 42; print' Apparently starting with version 16 perl thinks that all XS functions return lvalues. For comparison, the expected result (here with 5.12.4): Perl Info
|
From @rgarciaOn 10 May 2013 17:59, l.mai@web.de <perlbug-followup@perl.org> wrote:
maxstr is not a method; if you use List::Util::maxstr() instead, it ~§ perl -wle 'use List::Util qw(maxstr); List::Util::maxstr($_ = "hi") That said, we actually seem to have a problem with XS functions called |
The RT System itself - Status changed from 'new' to 'open' |
From @LeontOn Mon, May 13, 2013 at 1:28 PM, Rafael Garcia-Suarez <rgs@consttype.org> wrote:
Yeah, the keywords there seems to be "compilation errors". For methods Leon |
From @maukeOn 13.05.2013 14:12, Leon Timmermans wrote:
Yes, this is about calls that can't be resolved (and rejected) at % perl -wle 'use List::Util qw(maxstr); (\&maxstr)->($_ = "hi") = 42; print' i.e. calls through a reference. -- |
From @cpansproutOn Mon May 13 12:18:21 2013, plokinom@gmail.com wrote:
I’ve just fixed this in 4587c53. -- Father Chrysostomos |
@cpansprout - Status changed from 'open' to 'resolved' |
From @maukeOn 28.05.2013 03:03, Father Chrysostomos via RT wrote:
Nice, thanks for the quick fix! Will this be in 5.18.1? -- |
From @tseeOn 05/28/2013 07:35 AM, Lukas Mai wrote:
IIRC it was in 5.16.3, so not a 5.18 regression. It doesn't affect My reading of the policy is that it won't be in 5.18.1, I am afraid. I'd --Steffen |
From @nwc10On Wed, Jun 05, 2013 at 07:47:12AM +0200, Steffen Mueller wrote:
But as it's a 5.16.x regression (ie compared with 5.14.x) it should be I'm somewhat playing devil's advocate here. The paragraph in question in Patches that fix regressions in perl's behavior relative to previous In which case "release*s*" suggests to me that it's fair game to consider Nicholas Clark |
From @xdgOn Wed, Jun 5, 2013 at 10:13 AM, Nicholas Clark <nick@ccl4.org> wrote:
FWIW, I think we should backport it to all relevant maint releases. David -- |
From @nwc10On Wed, Jun 05, 2013 at 10:25:53AM -0400, David Golden wrote:
Yes, I forgot to say, that this looks like the thing to do, as it's a Nicholas Clark |
From @cpansproutOn Wed Jun 05 07:34:10 2013, nicholas wrote:
I have back-ported it to maint-5.18 as dffdb99 and to maint-5.16 as -- Father Chrysostomos |
From @cpansproutOn Wed Jun 05 21:33:49 2013, sprout wrote:
But I seem unable to get into cherrymaint. Is it down, or has the -- Father Chrysostomos |
From @rjbs* David Golden <xdg@xdg.me> [2013-06-05T10:25:53]
It's already done, but +1 for the record. -- |
From @rjbs* Father Chrysostomos via RT <perlbug-followup@perl.org> [2013-06-06T00:38:35]
We haven't used that in some time. We've discussed recommencing, but for the -- |
From @cpansproutOn Fri Jun 07 07:31:27 2013, perl.p5p@rjbs.manxome.org wrote:
That actually makes this easier, if you ask me. I was going to mark -- Father Chrysostomos |
Migrated from rt.perl.org#117947 (status was 'resolved')
Searchable as RT117947$
The text was updated successfully, but these errors were encountered: