next up previous
Next: Run Time System Up: Scanner Bugs Previous: S.1.20 Member function

S.1.21 Private and Protected Member Functions

per Russel 25.4.95

We have a conceptual problem with private and protected member functions. It is possible to call these from a sub-class but not otherwise. Our compilation strategy uses global functions as accessor functions to the non-local member function calls. Thus the global function for accessing non-public member functions must be made friends of the class. This provides a Trojan Horse through the protection mechanism. For the moment the friend statements must be generated since things do not work at the moment but...



Jonathan Poole
Tue Jun 27 16:38:45 BST 1995