[Moose-commits] r7407 - Moose/trunk/lib/Moose/Util

autarch at code2.0beta.co.uk autarch at code2.0beta.co.uk
Wed Jan 28 19:04:05 GMT 2009


Author: autarch
Date: 2009-01-28 11:04:04 -0800 (Wed, 28 Jan 2009)
New Revision: 7407

Modified:
   Moose/trunk/lib/Moose/Util/TypeConstraints.pm
Log:
Doh, forgot to actually add the doc change from the last checkin


Modified: Moose/trunk/lib/Moose/Util/TypeConstraints.pm
===================================================================
--- Moose/trunk/lib/Moose/Util/TypeConstraints.pm	2009-01-28 19:03:18 UTC (rev 7406)
+++ Moose/trunk/lib/Moose/Util/TypeConstraints.pm	2009-01-28 19:04:04 UTC (rev 7407)
@@ -763,6 +763,10 @@
   HashRef[CodeRef] # a hash of str to CODE ref mappings
   Maybe[Str]       # value may be a string, may be undefined
 
+If Moose finds a name in brackets that it does not recognize as an
+existing type, it assumes that this is a class name, for example
+C<ArrayRef[DateTime]>.
+
 B<NOTE:> Unless you parameterize a type, then it is invalid to
 include the square brackets. I.e. C<ArrayRef[]> will be
 literally interpreted as a type name.




More information about the Moose-commits mailing list