[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] [Patch] mtn automate lua
From: |
Stephen Leake |
Subject: |
Re: [Monotone-devel] [Patch] mtn automate lua |
Date: |
Sun, 07 Dec 2008 04:38:02 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Thomas Keller <address@hidden> writes:
> ============================================================
> --- std_hooks.lua c4f02c95a5717f64d0a60251081ff5bd1a8038de
> +++ std_hooks.lua 602ac070879bb429d902af61e65bcf652857af90
> @@ -1157,7 +1157,50 @@ end
> return default_args
> end
>
> +dump = {}
> +dump.depth = 0
> +dump._string = function(s) return string.format("%q", s) end
> +dump._number = function(n) return tonumber(n) end
> +dump._boolean = function(b) if (b) then return "true" end return
> "false" end
> +dump._userdata = function(u) return "<userdata>" end
> +dump._function = function(f) return "<function>" end
> +dump._nil = function(n) return "nil" end
> +dump._thread = function(t) return "<thread>" end
> +dump._lightuserdata = function(l) return "<lightuserdata>" end
Another comment on this: I think 'dump' is in the global Lua
namespace? In which case it needs a better name; hook_wrapper_dump.
--
-- Stephe
- Re: [Monotone-devel] [Patch] mtn automate lua, (continued)
- Re: [Monotone-devel] [Patch] mtn automate lua, Stephen Leake, 2008/12/06
- Re: [Monotone-devel] [Patch] mtn automate lua, Thomas Keller, 2008/12/06
- Re: [Monotone-devel] [Patch] mtn automate lua, Stephen Leake, 2008/12/07
- Re: [Monotone-devel] [Patch] mtn automate lua, Stephen Leake, 2008/12/07
- Re: [Monotone-devel] [Patch] mtn automate lua, Stephen Leake, 2008/12/07
- Re: [Monotone-devel] [Patch] mtn automate lua, Thomas Keller, 2008/12/08
- Re: [Monotone-devel] [Patch] mtn automate lua, Stephen Leake, 2008/12/08
- Re: [Monotone-devel] [Patch] mtn automate lua, Thomas Keller, 2008/12/13
Re: [Monotone-devel] [Patch] mtn automate lua,
Stephen Leake <=