1
0
mirror of https://github.com/janet-lang/janet synced 2025-09-18 02:34:11 +00:00

Merge pull request #811 from sogaiu/use-deprecation-mechanism-for-file-popen

Apply deprecation machinery to file/popen
This commit is contained in:
Calvin Rose
2021-09-21 15:16:20 -05:00
committed by GitHub

View File

@@ -3690,6 +3690,10 @@
(put into k (x k))))
into)
# Deprecate file/popen
(when-let [v (get root-env 'file/popen)]
(put v :deprecated true))
# Modify root-env to remove private symbols and
# flatten nested tables.
(loop [[k v] :in (pairs root-env)