Encapsulation (1)
Effective use of ghost variables depends on having a simple, preferably automated process to perform eager updates of shadow copies and to selectively swap master and ghost roles;
One enabling technique is encapsulation, by using set() and get() functions to hide all data references, after which data representations are easy to change.