Skip Menu |

This queue is for tickets about the Map-Tube CPAN distribution.

Report information
The Basics
Id: 125685
Status: resolved
Priority: 0/
Queue: Map-Tube

People
Owner: MANWAR [...] cpan.org
Requestors: perl [...] toby.ink
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 3.51
Fixed in: 3.53



Subject: type constraints are overly restrictive
Declaring Node like this, for example, doesn't allow people to use subclassing. declare 'Node', as Object, where { ref($_) eq 'Map::Tube::Node' }; It would be better to do this: declare 'Node', as InstanceOf['Map::Tube::Node']; InstanceOf calls $object->isa($class) on the object, so respects inheritance.
Hi Toby, Good catch :-) I wasn't aware of that. I will patch the code and release it asap (tomorrow). Many Thanks. Best Regards, Mohammad S Anwar
Patched. @tobyink, could you please review it again when you get time? Best Regards, Mohammad S Anwar