Branch: Tag:

2016-07-08

2016-07-08 01:23:52 by Martin Nilsson <nilsson@fastmail.com>

Allow setting variables at top level in dirnodes and joinnodes.

2174:    return low_ind(index);    }    +  protected mixed `[]=(string index, mixed value) +  { +  if(module && has_index(module, index)) +  return module[index]=value,cache[index]=value; +  error("No such variable (%s) in object.\n", index); +  } +     protected mixed `[](string index)    {    mixed ret;
2402:    return fallback_module[index];    }    +  protected mixed `[]=(string index, mixed value) +  { +  foreach(joined_modules, object|mapping o) +  if(has_index(o, index)) +  return o[index]=value,cache[index]=value; +  error("No such variable (%s) in object.\n", index); +  } +     protected mixed `[](string index)    {    mixed ret;