Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[6.d] Deprecate
undefine
Per 6.d-prep
- Loading branch information
1 parent
b826a07
commit 72bac67
Showing
3 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| src/core.d/core_prologue.pm6 | ||
| src/core.d/await.pm6 | ||
| src/core.d/operators.pm6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| src/core.d/core_prologue.pm6 | ||
| src/core.d/await.pm6 | ||
| src/core.d/operators.pm6 |