next up previous
Next: REQUIRES MORE TESTING Up: Known bugs in the Previous: UC++ classes require

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...

See also section on scanner output for more details.