[openbeos] Re: Properties in GCC ?

  • From: "Michael Phipps" <mphipps1@xxxxxxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Thu, 07 Feb 2002 21:12:49 -0500

>>> int property(void) { return mProperty;}
>>
>>Probably you meant:
>>
>>    int property(void) const { return mProperty; }
>
>:-) I learned C++ a long time ago, before const was everywhere.
>It is one of the things that I keep trying to for

Sorry about that...
force myself to learn.

Or ummmm - I know:
I was trying to make my style match Be's. :-)

The only downside to this approach is that you can not use:
        foo=property;
instead:
        foo=property();
        



>>manuel,
>>
>>
>>> void property(int newVal) {mProperty=newVal;}
>>> 
>>
>>
>>
>
>
>




Other related posts: