pike.git / lib / modules / Mapping.pmod

version» Context lines:

pike.git/lib/modules/Mapping.pmod:26:    //! @param shadow    //! Initial shadow of @[parent].    //! @param modify_parent    //! Modifications should be done to @[parent] rather than    //! to @[shadow]. If this is set, only entries that are    //! already present in @[shadow] can be modified by later    //! operations.       protected void create(mapping|void shadow, int(0..1)|void modify_parent)    { -  if (shadow) this_program::shadow = shadow + ([]); -  this_program::modify_parent = modify_parent; +  if (shadow) this::shadow = shadow + ([]); +  this::modify_parent = modify_parent;    }       // Updates the cached joined mapping if needed.    protected void update_joined()    {    if (!joined || !equal(parent, parent_copy)) {    joined = [mapping](parent + shadow);    parent_copy = [mapping](parent + ([]));    }    }