[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] [Patch] mtn automate lua
From: |
Thomas Keller |
Subject: |
Re: [Monotone-devel] [Patch] mtn automate lua |
Date: |
Sun, 07 Dec 2008 13:07:35 +0100 |
User-agent: |
Thunderbird 2.0.0.18 (Macintosh/20081105) |
Stephen Leake schrieb:
> 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.
>
Make sense, committed in 68752b80d8cae7ba03488683aafd97e8556e6b89.
Thomas.
--
GPG-Key 0x160D1092 | address@hidden | http://thomaskeller.biz
Please note that according to the EU law on data retention, information
on every electronic information exchange might be retained for a period
of six months or longer: http://www.vorratsdatenspeicherung.de/?lang=en
signature.asc
Description: OpenPGP digital signature
- Re: [Monotone-devel] [Patch] mtn automate lua, (continued)
- 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, 2008/12/07
- Re: [Monotone-devel] [Patch] mtn automate lua,
Thomas Keller <=