[llvm-commits] [llvm] r70790 - /llvm/trunk/docs/LangRef.html

Chris Lattner clattner at apple.com
Mon May 4 09:38:49 PDT 2009


On May 4, 2009, at 1:49 AM, Török Edwin wrote:

> Also what happens with C++'s const member functions?
> If there are mutable class members they aren't technically readonly,
> since they have the side-effect of modifying the object.
> However most people use this as a 'logical' const, i.e. the object may
> be modified, but the new object is equivalent to the old one.
> Can this be modeled via an LLVM attribute?

No, this cannot be modeled, because const is allowed to be cast away.

-Chris



More information about the llvm-commits mailing list