Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[6.d] Deprecate undefine
Per 6.d-prep
  • Loading branch information
zoffixznet committed Aug 1, 2018
1 parent b826a07 commit 72bac67
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core.d/operators.pm6
@@ -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 change: 1 addition & 0 deletions tools/build/jvm_core_d_sources
@@ -1,2 +1,3 @@
src/core.d/core_prologue.pm6
src/core.d/await.pm6
src/core.d/operators.pm6
1 change: 1 addition & 0 deletions tools/build/moar_core_d_sources
@@ -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.