Article View: comp.std.c++
Article #2012Proposal for a new access specifier
From: Juan Carlos Rodriguez
Date: Sat, 23 Sep 1995 16:06
Date: Sat, 23 Sep 1995 16:06
34 lines
1514 bytes
1514 bytes
Hello.
The proposal is a new class access specifier with the
following characteristics:
1) Its keyword will be "publiconst".
2) For the own class and its friends the attributes affected
acts as regular "public".
3) For the rest, the attributes are seems as "const".
4) The "publiconst" functions are as "public".
Improve.
The new access way will eliminate the tedious work of
write functions to protect the external access to interesting
class attributes.
Implementation.
I think that the compiler overhead for this new feature
will be little.
Sorry in advance for my bad English.
Un cordial saludo.
Juan Carlos Rodriguez Del Pino
Departamento de Informatica y Sistemas
Universidad de Las Palmas de Gran Canaria
Canary Islands, Spain
http://protos.dis.ulpgc.es/~jcrodrig
---
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<199509221547.JAA10782@ncar.ucar.EDU>Path:
arc1-ca.pugleaf.net!in2.uu.net!bounce-backShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back Date: 23 Sep 95 16:06:15 GMT Approved: fjh@cs.mu.oz.au Newsgroups: comp.std.c++ Message-ID: <199509221547.JAA10782@ncar.ucar.EDU> From: "Juan Carlos Rodriguez" <JUANCA@sergied.dis.ulpgc.es> Organization: Universidad de Las Palmas de G.C. X-Original-Date: Thu, 21 Sep 1995 17:09:16 GMT Subject: Proposal for a new access specifier Reply-To: jcrodriguez@dis.ulpgc.es X-Mailer: Pegasus Mail/Windows (v1.22)