lua-users home
lua-l archive

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


>function __read_value(__name)
>  local __ret, __gotit = %__get_local(__name);
>  if( __gotit == nil ) then
>    return %rawget(%globals(), __name);
>  end
>  return __ret;
>end

Try
 return %__get_local(__name) or %rawget(%globals(), __name)

--lhf