Skip Menu |

This queue is for tickets about the Graphics-Primitive CPAN distribution.

Report information
The Basics
Id: 88589
Status: new
Priority: 0/
Queue: Graphics-Primitive

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Graphics::Primitve::Brush: unnecessary restriction to Int for "width" member
Graphics::Primitve::Brush defines an "Int" restriction for the member "width": has 'width' => ( is => 'rw', isa => 'Int', default => sub { 0 } ); This is unnecessary strict. "Num" is better, as underlying drivers may allow floating numbers here. Especially the Cairo driver allows "double" for set_line_width and many other methods. I did not check other type restrictions for other members and classes, but it's possible that more members should be allowed to a "Num". Regards, Slaven