Skip to content
Permalink
Browse files

[6.d] Deprecate `undefine`

Per 6.d-prep
  • Loading branch information...
zoffixznet committed Aug 1, 2018
1 parent b826a07 commit 72bac6708002f992952ca93e617435482824b95f
Showing with 11 additions and 0 deletions.
  1. +9 −0 src/core.d/operators.pm6
  2. +1 −0 tools/build/jvm_core_d_sources
  3. +1 −0 tools/build/moar_core_d_sources
@@ -0,0 +1,9 @@
proto sub undefine(Mu, *%) is raw {
Rakudo::Deprecations.DEPRECATED:
'another way: assign a Nil; for Arrays/Hashes, assign Empty or ()',
Nil, '6.e', :lang-vers, :what<undefine>;
{*}
}
multi sub undefine(Mu \x) is raw { x = Nil }
multi sub undefine(Array \x) is raw { x = Empty }
multi sub undefine(Hash \x) is raw { x = Empty }
@@ -1,2 +1,3 @@
src/core.d/core_prologue.pm6
src/core.d/await.pm6
src/core.d/operators.pm6
@@ -1,2 +1,3 @@
src/core.d/core_prologue.pm6
src/core.d/await.pm6
src/core.d/operators.pm6

0 comments on commit 72bac67

Please sign in to comment.
You can’t perform that action at this time.