Skip Menu |

This queue is for tickets about the Struct-Dumb CPAN distribution.

Report information
The Basics
Id: 97452
Status: resolved
Priority: 0/
Queue: Struct-Dumb

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

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



Subject: Named constructor
It might be nice to be able to named_struct RGB => [qw( red green blue )]; my $colour = RGB( red => 1, green => 0.4, blue => 0.1 ); Or somesuch. Or maybe struct RGB => [qw( red green blue )], named_constructor => 1; Set a (per-package) default by use Struct::Dumb qw( :named_constructors ); -- Paul Evans
This was done in 0.03 -- Paul Evans