lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Aug 27, 2014 at 11:53 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:

> Neutral: Some of IPython's convenience comes from Python
> conventions we do not yet have in Lua, in particular its docstring.

hmm.

docstring = function (f, description) docstring_table[f] = description end

debug.setmetatable(function () end, { __tostring = function (self)
return rawstring(self), docstring_table[self] end }) -- or something
fun...