/* To document this is very odd - it won't make sense to a person reading the API docs to see this metamethod as a method, but oh well.  */
WSLUA_METAMETHOD Columns__newindex(lua_State *L)
/* To document this is very odd - it won't make sense to a person reading the API docs to see this metamethod as a method, but oh well.  */
WSLUA_METAMETHOD Columns__newindex(lua_State *L)
{
        luaL_error(L,"expired column");
        return 0;
    }
    colname = luaL_checkstring(L,WSLUA_ARG_Columns__newindex_COLUMN);
    text = luaL_checkstring(L,WSLUA_ARG_Columns__newindex_TEXT);
    for(cn = colnames; cn->name; cn++) {
        if( g_str_equal(cn->name,colname) ) {
            col_add_str(cols->cinfo, cn->id, text);
            return 0;
        }
    }
    WSLUA_ARG_ERROR(Columns__newindex,COLUMN,"the column name must be a valid column");
    return 0;
}