The point is that a rule mandating const methods to return const pointers 
prevents me from saying that getting a pointer from a container doesn't change 
the container. 

Hence with any such rule in place you risk there being fewer uses of const.

-Filip

Dnia 28 paź 2012 o godz. 14:40 Peter Kasting <pkast...@chromium.org> napisał(a):

> On Sun, Oct 28, 2012 at 2:29 PM, Filip Pizlo <fpi...@apple.com> wrote:
>> It is useful to say that "getting a pointer to T from an object of type S 
>> does not change S's state".
> 
> That's pretty much the definition of physical constness.
> 
> PK
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to