pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2011-01-21
2011-01-21 11:54:11 by Henrik Grubbström (Grubba) <grubba@grubba.org>
4dbbd2bf575cdea49fb2f03c713a1ad39d7622d3 (
5
lines) (+
5
/-
0
)
[
Show
|
Annotate
]
Branch:
7.9
Builtin._get_setter() now knows about subtyped objects.
3661:
PIKEFUN function(mixed:void) _get_setter(object o, string s) { struct program *p;
+
struct inherit *inh;
int f; if (!(p = o->prog)) { Pike_error("Indexing a destructed object.\n"); }
-
+
inh = p->inherits + Pike_sp[-args].subtype;
+
p = inh->prog;
f = find_shared_string_identifier(s, p); if ((f >= 0) && IDENTIFIER_IS_VARIABLE(ID_FROM_INT(p, f)->identifier_flags)) {
-
+
f += inh->identifier_level;
push_function(get_setter(o, f), f_Setter_cq__backtick_28_29_fun_num); } else { push_undefined();