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

Owner: Nobody
Requestors: jdv79 <justin [at] devuyst.com>
Cc:
AdminCc:

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



To: <rakudobug [...] perl.org>
Subject: [BUG] handles Positional doesn't "work"
From: Justin DeVuyst <justin [...] devuyst.com>
Date: Thu, 06 Aug 2015 00:05:56 +0700
Download (untitled) / with headers
text/plain 488b
Hello, I recently tried to make a custom array type so that I could type the values. My intent would be that it would act like an array in all ways except have the value typing. I tried delegating to * but that doesn't work because Any is a parent. It was suggested that delegating to Positional would be a good idea. See: http://irclog.perlgeek.de/perl6/2015-08-05#i_11008623 http://design.perl6.org/S12.html#Delegation https://gist.github.com/anonymous/0a3088ffb1f46aee7928 -jdv
Download (untitled) / with headers
text/plain 671b
On Wed, 05 Aug 2015 10:06:17 -0700, jdv79 wrote: Show quoted text
> Hello, > > I recently tried to make a custom array type so that I could > type the values. My intent would be that it would act like > an array in all ways except have the value typing. > > I tried delegating to * but that doesn't work because Any is > a parent. It was suggested that delegating to Positional > would be a good idea. > > See: > > http://irclog.perlgeek.de/perl6/2015-08-05#i_11008623 > http://design.perl6.org/S12.html#Delegation > https://gist.github.com/anonymous/0a3088ffb1f46aee7928 > > -jdv
This and (TODO) RT#122991 can probably be combined. The features desired are roughly equivalent.


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