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

github.com/torch/xlua.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Farabet <clement.farabet@gmail.com>2011-09-01 20:03:07 +0400
committerClement Farabet <clement.farabet@gmail.com>2011-09-01 20:03:07 +0400
commit1271c527acb8f9e3efee500faa550432178df7ce (patch)
tree7e3b4dac2f046a0dff6158ab4374bdcfa0b3849f
parentfa7a3ca187bb90052f2411ce3f1761c69c7f3906 (diff)
Removed default print overload.
-rw-r--r--xlua.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/xlua.lua b/xlua.lua
index 875ab72..6e177a6 100644
--- a/xlua.lua
+++ b/xlua.lua
@@ -38,10 +38,6 @@ require 'sys'
require 'io'
require 'math'
--- new prompt
-_G._PROMPT = 'xLua > '
-_G._PROMPT2 = ' ... > '
-
-- remember startup variables (to protect them)
_G._protect_ = {'_protect_','xlua'}
for k,v in pairs(_G) do
@@ -112,8 +108,7 @@ print = function(obj,...)
glob.io.write('\n')
end
end
-glob._print = glob.print
-glob.print = print
+glob.xprint = print
----------------------------------------------------------------------
-- clear all globals