Boost logo

Boost :

From: Fernando Cacciola (fcacciola_at_[hidden])
Date: 2002-02-13 13:09:06


----- Original Message -----
From: "rogeeff" <rogeeff_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, February 13, 2002 3:03 PM
Subject: [boost] Re: properties in C++

> --- In boost_at_y..., "Fernando Cacciola" <fcacciola_at_g...> wrote:
>
> > IMHO, the ONLY advantage of a 'property' in comparison with the
> good old:
> >
> > int const& foo() const { return m_foo ; }
> > int & foo() { return m_foo ; }
> > int m_foo ;
> >
> > is that the user don't have to write the extra '()'.
> >
> > I don't think that a property facility could add that much
> complexity just
> > to allow syntactic sugar.
> >
> > Of course, I can be missing something and I'll be glad to know it.
> >
> > Fernando Cacciola
> > Sierra s.r.l.
> > fcacciola_at_g...
> > www.gosierra.com
>
> Mostly it helps developer not the user.
>
> Gennadiy
>
>
How exactly?

Fernando Cacciola
Sierra s.r.l.
fcacciola_at_[hidden]
www.gosierra.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk