Skip Menu |

This queue is for tickets about the Dios CPAN distribution.

Report information
The Basics
Id: 122936
Status: resolved
Priority: 0/
Queue: Dios

People
Owner: Nobody in particular
Requestors: felix.ostmann [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: comments and special labeled variables not working with BUILD
Hello again, here are some new strange errors: use strict; use warnings; use Test::More; use Test::Exception; use Dios; class Test1 { has $.foo; submethod BUILD ( # :$foo ) { 42 } } class Test2 { has $.foo; submethod BUILD ( :foo($new_foo) ) { 42 } } ok eval { Test1->new({foo => 1}) }, 'ignore comment'; ok eval { Test2->new({foo => 1}) }, 'labeled argument'; done_testing(); When i only make 1 test in the file, both single fail. When i make Test1 & Test2, only Test1 fail. When i make Test2 & Test1 both fail. I am not sure how bad this cases are, the first one took me some hours to realize the comment is not working, the second was a try to find the first bug.
Subject: Re: [rt.cpan.org #122936] comments and special labeled variables not working with BUILD
Date: Sat, 2 Sep 2017 08:44:09 +0000
To: bug-Dios [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Once again, your bug report is deeply appreciated, Felix. I have just uploaded a new release to CPAN that fixes this issue ...as well as silencing the "variabled redefined" warning that uncommenting the :$foo parameter previously raised. I apologize that these bugs are time-consuming for you, but please accept my sincere thanks for the excellent job you are doing stress-testing this module. Damian