diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-08-29 15:59:30 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-08-29 16:00:04 -0700 |
| commit | 811fdd685670d2eb8c6bcb9e6e103e57bf402ca8 (patch) | |
| tree | c599fd7a609159c2ec50a30f1131000070e8eb03 /compatibility/3.6.nom | |
| parent | 22495c7d708b4950b83c5bc9b97806e19cd1fcfa (diff) | |
Tweaked version 3.6 to include deprecating list append/removal functions
in favor of using a method call style.
Diffstat (limited to 'compatibility/3.6.nom')
| -rw-r--r-- | compatibility/3.6.nom | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/compatibility/3.6.nom b/compatibility/3.6.nom index 297612a..ecf4fb3 100644 --- a/compatibility/3.6.nom +++ b/compatibility/3.6.nom @@ -4,17 +4,27 @@ use "compatibility/compatibility.nom" -upgrade action (to %1 write %2) to "3.6" as (%1::append %2) -upgrade action (%1 <-write %2) to "3.6" as (%1::append %2) -upgrade action (to %1 write %2 joined by %3) to "3.6" as (..) +upgrade action [..] + append %item to %list, add %item to %list, to %list add %item, to %list append %item +..to "3.6" as (%list::add %item) + +upgrade action [add %item to %list at index %i] to "3.6" as (..) + %list::at index %i add %item + +upgrade action [pop from %list, remove last from %list] to "3.6" as (%list::pop) +upgrade action [remove index %index from %list] to "3.6" as (..) + %list::remove index %index + +upgrade action [to %1 write %2, %1 <-write %2] to "3.6" as (%1::append %2) +upgrade action [to %1 write %2 joined by %3] to "3.6" as (..) %1::append %2 joined by %3 -upgrade action (declare locals in %lua) to "3.6" as (%lua::declare locals) -upgrade action (declare locals %locs in %lua) to "3.6" as (..) +upgrade action [declare locals in %lua] to "3.6" as (%lua::declare locals) +upgrade action [declare locals %locs in %lua] to "3.6" as (..) %lua::declare locals %locs -upgrade action (add free vars %vars to %lua) to "3.6" as (..) +upgrade action [add free vars %vars to %lua] to "3.6" as (..) %lua::add free vars %vars -upgrade action (remove free vars %vars from %lua) to "3.6" as (..) +upgrade action [remove free vars %vars from %lua] to "3.6" as (..) %lua::remove free vars %vars |
