On 2/27/15 6:46 AM, Steven Schveighoffer wrote:
On 2/27/15 9:09 AM, Andrei Alexandrescu wrote:
On 2/27/15 1:09 AM, ted wrote:

Probably another silly question: How would the examples work with
const/immutable (using examples in howtos)?
e.g. const Widget a = new Widget;
      auto b = a;    <-- mutable method Widget.opAddRef is not callable
using a const object

This is tricky. I meant to discuss it; for now I planted a TODO.

Wouldn't you bless this mechanism of logical const the same way
synchronized does?

Yes, it's a similar matter. -- Andrei

Reply via email to