Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/dok.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgOstrovski <ostrovski@google.com>2015-01-15 21:29:32 +0300
committerGeorgOstrovski <ostrovski@google.com>2015-01-15 21:29:32 +0300
commit118141cf60fb4711ccaa2346cbacaf857996e39c (patch)
treec10721595ea7536024046b7fcfd7f04c0b0415d5
parent679c6dab55c22e68549b691a2f687afed56bea82 (diff)
Use rawset instead of direct assignment
This is to avoid warnings in strictness tests (such as package [strict](https://github.com/deepmind/strict))
-rw-r--r--inline.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/inline.lua b/inline.lua
index d40bcae..c4d577b 100644
--- a/inline.lua
+++ b/inline.lua
@@ -437,7 +437,7 @@ function dok.help(symbol, asstring)
end
end
-help = dok.help
+rawset(_G, 'help', dok.help)
--------------------------------------------------------------------------------
-- browse() is a simpler function that simply triggers a browser
@@ -456,7 +456,7 @@ function dok.browse()
qtide = nil
end
-browse = dok.browse
+rawset(_G, 'browse', dok.browse)
--------------------------------------------------------------------------------
-- standard usage function: used to display automated help for functions