How will we fix opEquals?
so
so at so.so
Thu Feb 10 01:26:14 PST 2011
> Saying that no one should have to worry about const if they don't want
> to is a
> noble though, I suppose, but I don't think that it's entirely realistic.
> const
> is part of the language, and some things just plain have to be const to
> work.
> And given the prevalence of immutable with regards to threads and the
> like,
> you're going to be forced to use const in many cases anyway.
>
> I don't think that it's all that big a deal with these 4 functions are
> const.
> The impact on the programmer is minimal. They can _almost_ ignore const
> completely, since they can still ignore it pretty much everywhere else
> other
> than with the overriden const Object functions.
>
> - Jonathan M Davis
Problem is not having to provide const for these functions, it is the
lock-in we introduce by marking them const.
These functions would be const most of the times, if not all. Still, it is
hard to rule the other case out completely i suppose.
More information about the Digitalmars-d
mailing list