C++ property support

Gabriel Dos Reis gdr@integrable-solutions.net
Sat Apr 9 21:07:00 GMT 2005


Stefan Strasser <sstrasser@systemhaus-gruppe.de> writes:

| Christian Parpart schrieb:
| 
| > and the microsoft proposal (derived from C#)
| > class my_bar {
| > public:     property int bar {
| >         int get() { return value; }
| >         void set(int v) { value = v; }
| >     }
| > private:
| >     int value;
| > }
| > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1600.html
| >
| 
| 
| first of all, I think comp.lang.c++.moderated is a better place to
| discuss things like that.

or comp.std.c++

-- Gaby



More information about the Gcc-help mailing list