develooper Front page | perl.perl6.users | Postings from July 2020

Re: cannot create an instance of subset type

Thread Previous | Thread Next
From:
Ben Davies
Date:
July 11, 2020 09:41
Subject:
Re: cannot create an instance of subset type
Message ID:
BYAPR20MB272695EAAB364B9373C5DB9DC3620@BYAPR20MB2726.namprd20.prod.outlook.com
It looks like you're trying to create an alias for a type. I'd use a 
constant for this, not a subset, for reasons Brad has already explained. 
Your code runs fine for me when DEF is written like my constant DEF = ABC.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About