Topic: hidden keyword
Author: maxtal@extro.ucc.su.OZ.AU (John (MAX) Skaller)
Date: Tue, 30 Jun 1992 18:18:37 GMT Raw View
Here is another proposal for an extension to C++ :-)
The keyword 'hidden' is added to the language.
It is used in class declarations like 'private'.
It differs from private in that hidden names are
not visible (private names are visible but inaccessible)
class X {
hidden:
int i;
private:
int j;
};
class Y {
void f(){ return i;} // error, i is unknown
void g() {return j;} // error, j is inaccessible
};
Hidden functions cannot be virtual.
Bases cannot be hidden.
Extension:
----------
Hidden functions need not be declared.
[Not sure of syntax yet. Helper functions cannot be
written without declaration at the moment]
--
;----------------------------------------------------------------------
JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------