Permalink
Browse files

Mention the :exists adverb, instead of 'exists_key'

  • Loading branch information...
lizmat committed Sep 27, 2013
1 parent 155487c commit 384a0fa76bdc35b9ec49fc914ac6c7cadbbc5b02
Showing with 9 additions and 9 deletions.
  1. +1 −1 src/core/Any.pm
  2. +1 −1 src/core/Baggy.pm
  3. +1 −1 src/core/Capture.pm
  4. +2 −2 src/core/EnumMap.pm
  5. +1 −1 src/core/Hash.pm
  6. +1 −1 src/core/List.pm
  7. +1 −1 src/core/PseudoStash.pm
  8. +1 −1 src/core/Setty.pm
View
@@ -12,7 +12,7 @@ my class Any { # declared in BOOTSTRAP
# primitives
method infinite() { Nil }
method exists (Any:U: $key) { # is DEPRECATED doesn't work in settings
- once DEPRECATED("Method 'Any.exists'", "'exists_key' or 'exists_pos'");
+ once DEPRECATED("Method 'Any.exists'", "the :exists adverb");
False;
}
method exists_key(Any:U: $key) { False }
View
@@ -7,7 +7,7 @@ my role Baggy does Associative {
method values { %!elems.values.map( {.value} ) }
method elems(--> Int) { [+] self.values }
method exists ($k --> Bool) { # is DEPRECATED doesn't work in settings
- once DEPRECATED("Method 'Baggy.exists'","'exists_key'");
+ once DEPRECATED("Method 'Baggy.exists'","the :exists adverb");
self.exists_key($k);
}
method exists_key($k --> Bool) {
View
@@ -34,7 +34,7 @@ my class Capture { # declared in BOOTSTRAP
}
method exists (Capture:D: $key ) { # is DEPRECATED doesn't work in settings
- once DEPRECATED("Method 'Capture.exists'","'exists_key'");
+ once DEPRECATED("Method 'Capture.exists'","the :exists adverb");
self.exists_key($key);
}
method exists_key(Capture:D: $key ) {
View
@@ -29,11 +29,11 @@ my class EnumMap does Associative { # declared in BOOTSTRAP
proto method exists(|) {*}
multi method exists (EnumMap:U:) { # is DEPRECATED doesn't work in settings
- once DEPRECATED("Method 'EnumMap.exists'","'exists_key'");
+ once DEPRECATED("Method 'EnumMap.exists'","the :exists adverb");
self.exists_key;
}
multi method exists (EnumMap:D: \key) { # is DEPRECATED doesn't work in settings
- once DEPRECATED("Method 'EnumMap.exists'","'exists_key'");
+ once DEPRECATED("Method 'EnumMap.exists'","the :exists adverb");
self.exists_key(key);
}
View
@@ -309,7 +309,7 @@ my class Hash { # declared in BOOTSTRAP
bindval)
}
method exists (TKey \key) { # is DEPRECATED doesn't work in settings
- once DEPRECATED("Method 'Hash.exists'","'exists_key'");
+ once DEPRECATED("Method 'Hash.exists'","the :exists adverb");
self.exists_key(key);
}
method exists_key(TKey \key) {
View
@@ -96,7 +96,7 @@ my class List does Positional { # declared in BOOTSTRAP
}
method exists (\pos) { # is DEPRECATED doesn't work in settings
- once DEPRECATED("Method 'List.exists'","'exists_pos'");
+ once DEPRECATED("Method 'List.exists'","the :exists adverb");
self.exists_pos(pos);
}
method exists_pos(\pos) {
View
@@ -157,7 +157,7 @@ my class PseudoStash is EnumMap {
}
method exists ($key) { # is DEPRECATED doesn't work in settings
- once DEPRECATED("Method 'PsuedoStash.exists'","'exists_key'");
+ once DEPRECATED("Method 'PsuedoStash.exists'","the :exists adverb");
self.exists_key($key);
}
method exists_key($key is copy) {
View
@@ -7,7 +7,7 @@ my role Setty does Associative {
method values { True xx %!elems.elems }
method elems(--> Int) { %!elems.elems }
method exists ($k --> Bool) { # is DEPRECATED doesn't work in settings
- once DEPRECATED("Method 'Setty.exists'","'exists_key'");
+ once DEPRECATED("Method 'Setty.exists'","the :exists adverb");
self.exists_key($k);
}
method exists_key($k --> Bool) {

0 comments on commit 384a0fa

Please sign in to comment.