NAME
registry
ABSTRACT
Register Type Libraries with Namespaces
SYNOPSIS
DESCRIPTION
This pragma is used to associate the calling package with Type::Tiny type libraries. A $registry
variable is made available to the caller to be used to access registry objects. The variable is a callback (i.e. coderef) which should be called with a single argument, the namespace whose registry object you want, otherwise the argument defaults to main
.
You can configure the calling package to be associated with multiple distinct type libraries. The exported $registry
object can be used to reify type constraints and resolve type expressions.
AUTHOR
Al Newkirk, awncorp@cpan.org
LICENSE
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".