[Exceptional C++ Style] Fw: const data - was Item 17

Balog Pal pasa at lib.hu
Thu Dec 30 06:51:47 EST 2004


From: "Jon Jagger" <jon at jaggersoft.com>

> Ultimately, as always, it boils down to a choice. I could use get 
> accessors in the class, declare those as operations in an interface, and 
> program to the interface. This would, as you say, allow me handle-body 
> if I wanted to. The problem is I don't want to. And I cannot think of a 
> reason why I'd want to.

That's it.  There are places abstraction does not makes sense, period.  

> If you can think of any reasons why I'd want to handle-body I would be 
> very interested to hear them. Remember the grammar does nothing. It 
> really is just data.

that reminds the portion in this episode:

http://www.objectmentor.com/resources/articles/xpepisode.htm

where class Throw is discussed at the beginning.  





More information about the Effective-cpp mailing list