FAQ
Author: masak
Date: 2009-07-23 11:11:33 +0200 (Thu, 23 Jul 2009)
New Revision: 27680

Modified:
docs/Perl6/Spec/S12-objects.pod
Log:
[S12] added missing comma

We generally cannot have two terms in a row, and that goes for the
inside of hash arguments to a handles trait, too.

Modified: docs/Perl6/Spec/S12-objects.pod
===================================================================
--- docs/Perl6/Spec/S12-objects.pod 2009-07-23 03:53:05 UTC (rev 27679)
+++ docs/Perl6/Spec/S12-objects.pod 2009-07-23 09:11:33 UTC (rev 27680)
@@ -1319,7 +1319,7 @@
other class. If you put a hash, each key/value pair is treated as
such a mapping. Such mappings are not considered wildcards.

- has $.fur handles { :shakefur<shake> :scratch<get_fleas> };
+ has $.fur handles { :shakefur<shake>, :scratch<get_fleas> };

You I<can> do a wildcard renaming, but not with pairs. Instead do smartmatch
with a substitution:

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl6-language @
categoriesperl
postedJul 23, '09 at 9:11a
activeJul 23, '09 at 9:11a
posts1
users1
websiteperl6.org

1 user in discussion

Pugs-commits: 1 post

People

Translate

site design / logo © 2021 Grokbase