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
Subclass of Date + role = attribute default fail #5000
Comments
From @japhbMixing a role into a subclass of Date loses defaults for the role's attributes: 08:44 < japhb> m: role Foo { has $.s = 42; has @.a = 7, 8, 9; }; class This worked fine as of a couple weeks ago ... I'm guessing one of the FWIW, I noticed this because I created a "BusinessDateish" role for |
From @lizmat
I think this is happening because I gave Date/DateTime their own new / BUILD combo, so it’s not going through the default new process, thereby bypassing the automatic default handling for mixed in attributes. Which is a large part of the speedup of Date/DateTime. Looking at ways to create a different code path for Date only, and subclassed Date, thereby restoring the above behaviour, while keeping most of the speed increase for the most common cases. Liz |
The RT System itself - Status changed from 'new' to 'open' |
From @lizmat
Fixed with fec0619 , tests added with 5e7d2ad , can be closed. Liz |
From @usev6On Wed Jan 06 06:05:47 2016, elizabeth wrote:
Thanks! I'm closing this ticket as 'resolved'. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127170 (status was 'resolved')
Searchable as RT127170$
The text was updated successfully, but these errors were encountered: