Skip Menu |
Report information
Id: 130213
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: gfldex <wenzel.peppmeyer [at] gmx.de>
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



To: rakudobug [...] perl.org
Date: Tue, 29 Nov 2016 15:52:27 +0100 (CET)
From: "Wenzel P. P. Peppmeyer" <wenzel.peppmeyer [...] gmx.de>
Subject: [LTA] but mixins don't complain about sink context
Download (untitled) / with headers
text/plain 173b
role R1 { method m {} }; role R2 { method m {} }; my $a but R1,R2; # R2 ends up in sink context without any complaint. That may become a # hairpulling trap for many users.
Subject: [perl #130213] update docs
To: rakudobug [...] perl.org
Date: Tue, 29 Nov 2016 16:01:00 +0100 (CET)
From: "Wenzel P. P. Peppmeyer" <wenzel.peppmeyer [...] gmx.de>
revert https://github.com/perl6/doc/commit/d7feaf8786 when this bug is fixed
Download (untitled) / with headers
text/plain 363b
On Tue, 29 Nov 2016 06:52:43 -0800, gfldex wrote: Show quoted text
> role R1 { method m {} }; role R2 { method m {} }; my $a but R1,R2; > > # R2 ends up in sink context without any complaint. That may become a > # hairpulling trap for many users.
FWIW the doc commit you pointed to has nothing to do with `but` operator. This doesn't produce a warning either: my $a = Int, Str;


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org