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

Owner: Nobody
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

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



Subject: [TODO] Implement 'handles' for 'my'-scoped (class) variables in classes
From: Carl Mäsak <cmasak [...] gmail.com>
To: rakudobug [...] perl.org
Date: Thu, 16 Oct 2014 22:06:48 +0200
Download (untitled) / with headers
text/plain 748b
<masak> m: class A { my @.foo handles <push> }; A.push("OH", "HAI"); say A.foo <camelia> rakudo-moar a6f181: OUTPUT«(timeout)» <masak> locally: "Cannot call 'trait_mod:<handles>'; none of these signatures match" (Attribute, Method) <masak> am I greedy for wanting `my` + twigil + `handles` to work? <masak> is that even theoretically possible? <masak> it would be so awesome. <jnthn> masak: my @.foo supporting handles is a cute idea at least. It's not entirely straightforward. <jnthn> masak: But feasible with effort. <jnthn> No objections to filing a TODO ticket for it. <masak> developer torment? sounds like... a job for Perl 6! :P <masak> what's the saying again: "tormenting developers just for the sake of it" * masak submits TODO ticket
Still reproducible (2017.11,HEAD(e5b660e)) (complains about trait_mod:<handles>)

On 2014-10-16 13:07:07, masak wrote:
Show quoted text
> <masak> m: class A { my @.foo handles <push> }; A.push("OH", "HAI");
> say A.foo
> <camelia> rakudo-moar a6f181: OUTPUT«(timeout)»
> <masak> locally: "Cannot call 'trait_mod:<handles>'; none of these
> signatures match" (Attribute, Method)
> <masak> am I greedy for wanting `my` + twigil + `handles` to work?
> <masak> is that even theoretically possible?
> <masak> it would be so awesome.
> <jnthn> masak: my @.foo supporting handles is a cute idea at least.
> It's not entirely straightforward.
> <jnthn> masak: But feasible with effort.
> <jnthn> No objections to filing a TODO ticket for it.
> <masak> developer torment? sounds like... a job for Perl 6! :P
> <masak> what's the saying again: "tormenting developers just for the
> sake of it"
> * masak submits TODO ticket




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