On Thu, Jun 9, 2011 at 2:49 AM, Maciej Stachowiak <[email protected]> wrote:
>
> I'm not really convinced that casting away const from a return value is
> intrinsically safer than casting away const from "this".
>

Allowing the caller to mutate the return value is fine because the caller
had a non-const |this| to begin with.  We're not making anything less
const-safe.  Casting away const on |this|, OTOH, allows you to mutate
objects even when you never had permission to begin with.  Much different.

In any case, my intent is to proceed as Darin and I discussed.

PK
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to