Branch: Tag:

2014-09-30

2014-09-30 15:26:44 by Per Hedbor <ph@opera.com>

Support this::x for variables in this object.

This is equivalent to this_program::x, but shorter to write. And,
incidentally, more logical and more like other languages.

3933:    if (e == -1) {    inherit_state = state;    inherit_depth = depth; -  if ($1->u.sval.u.string == this_program_string) { +  if ($1->u.sval.u.string == this_program_string || $1->u.sval.u.string == this_string) {    inherit_state = Pike_compiler;    inherit_depth = 0;    e = 0;